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

Unified Diff: content/browser/in_process_webkit/dom_storage_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/dom_storage_browsertest.cc
===================================================================
--- content/browser/in_process_webkit/dom_storage_browsertest.cc (revision 123509)
+++ content/browser/in_process_webkit/dom_storage_browsertest.cc (working copy)
@@ -8,7 +8,6 @@
#include "base/test/thread_test_helper.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "content/browser/in_process_webkit/dom_storage_context_impl.h"
-#include "content/browser/in_process_webkit/webkit_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/url_constants.h"
#include "content/test/test_browser_context.h"
@@ -82,11 +81,11 @@
{
TestBrowserContext browser_context;
browser_context.SetSpecialStoragePolicy(new TestSpecialStoragePolicy());
- WebKitContext* webkit_context = BrowserContext::GetWebKitContext(
- &browser_context);
- webkit_context->dom_storage_context()->
- set_data_path_for_testing(temp_dir.path());
- webkit_context->dom_storage_context()->set_clear_local_state_on_exit(true);
+ DOMStorageContextImpl* dom_storage_context =
+ static_cast<DOMStorageContextImpl*>(
+ BrowserContext::GetDOMStorageContext(&browser_context));
+ dom_storage_context->set_data_path_for_testing(temp_dir.path());
+ dom_storage_context->set_clear_local_state_on_exit(true);
}
// Make sure we wait until the destructor has run.
scoped_refptr<base::ThreadTestHelper> helper(
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_area.h ('k') | content/browser/in_process_webkit/dom_storage_context_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698