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

Unified Diff: content/browser/in_process_webkit/dom_storage_unittest.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/dom_storage_unittest.cc
===================================================================
--- content/browser/in_process_webkit/dom_storage_unittest.cc (revision 123509)
+++ content/browser/in_process_webkit/dom_storage_unittest.cc (working copy)
@@ -5,7 +5,6 @@
#include "base/file_path.h"
#include "base/file_util.h"
#include "content/browser/browser_thread_impl.h"
-#include "content/browser/in_process_webkit/webkit_context.h"
#include "content/browser/in_process_webkit/dom_storage_context_impl.h"
#include "content/test/test_browser_context.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -57,8 +56,10 @@
ASSERT_EQ(1, file_util::WriteFile(permanent_database_path, ".", 1));
// Inject MockSpecialStoragePolicy into DOMStorageContext.
- BrowserContext::GetWebKitContext(browser_context.get())->
- dom_storage_context()->special_storage_policy_ = special_storage_policy;
+ DOMStorageContextImpl* dom_storage_context =
+ static_cast<DOMStorageContextImpl*>(
+ BrowserContext::GetDOMStorageContext(browser_context.get()));
+ dom_storage_context->special_storage_policy_ = special_storage_policy;
// Delete the TestBrowserContext but own the temp dir. This way the
// temporary data directory stays alive long enough to conduct the test.
@@ -103,8 +104,8 @@
// Inject MockSpecialStoragePolicy into DOMStorageContext.
DOMStorageContextImpl* dom_storage_context =
- BrowserContext::GetWebKitContext(browser_context.get())->
- dom_storage_context();
+ static_cast<DOMStorageContextImpl*>(
+ BrowserContext::GetDOMStorageContext(browser_context.get()));
dom_storage_context->special_storage_policy_ = special_storage_policy;
dom_storage_context->set_clear_local_state_on_exit(true);
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_namespace.h ('k') | content/browser/in_process_webkit/indexed_db_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698