Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1378)

Unified Diff: content/browser/in_process_webkit/indexed_db_browsertest.cc

Issue 9467016: Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a gl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix bug Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/in_process_webkit/indexed_db_browsertest.cc
===================================================================
--- content/browser/in_process_webkit/indexed_db_browsertest.cc (revision 123509)
+++ content/browser/in_process_webkit/indexed_db_browsertest.cc (working copy)
@@ -15,7 +15,6 @@
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/browser/in_process_webkit/indexed_db_context_impl.h"
-#include "content/browser/in_process_webkit/webkit_context.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/common/content_switches.h"
#include "webkit/database/database_util.h"
@@ -161,8 +160,9 @@
// Create some indexedDB paths.
// With the levelDB backend, these are directories.
- WebKitContext* webkit_context = BrowserContext::GetWebKitContext(&profile);
- IndexedDBContextImpl* idb_context = webkit_context->indexed_db_context();
+ IndexedDBContextImpl* idb_context =
+ static_cast<IndexedDBContextImpl*>(
+ BrowserContext::GetIndexedDBContext(&profile));
idb_context->set_data_path_for_testing(temp_dir.path());
protected_path = idb_context->GetFilePathForTesting(
DatabaseUtil::GetOriginIdentifier(kProtectedOrigin));
@@ -214,8 +214,9 @@
// Create some indexedDB paths.
// With the levelDB backend, these are directories.
- WebKitContext* webkit_context = BrowserContext::GetWebKitContext(&profile);
- IndexedDBContextImpl* idb_context = webkit_context->indexed_db_context();
+ IndexedDBContextImpl* idb_context =
+ static_cast<IndexedDBContextImpl*>(
+ BrowserContext::GetIndexedDBContext(&profile));
// Override the storage policy with our own.
idb_context->special_storage_policy_ = special_storage_policy;
@@ -270,8 +271,9 @@
// Create some indexedDB paths.
// With the levelDB backend, these are directories.
- WebKitContext* webkit_context = BrowserContext::GetWebKitContext(&profile);
- IndexedDBContextImpl* idb_context = webkit_context->indexed_db_context();
+ IndexedDBContextImpl* idb_context =
+ static_cast<IndexedDBContextImpl*>(
+ BrowserContext::GetIndexedDBContext(&profile));
// Override the storage policy with our own.
idb_context->special_storage_policy_ = special_storage_policy;
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_unittest.cc ('k') | content/browser/in_process_webkit/indexed_db_context_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698