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

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

Issue 9695013: DOMStorageContextImpl that's implemented in terms of the new dom_storage classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 127221)
+++ content/browser/in_process_webkit/dom_storage_browsertest.cc (working copy)
@@ -12,8 +12,13 @@
#include "content/public/common/url_constants.h"
#include "content/test/test_browser_context.h"
#include "googleurl/src/gurl.h"
+#include "webkit/dom_storage/dom_storage_types.h"
#include "webkit/quota/special_storage_policy.h"
+#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
+// No longer applicable.
+#else
+
using content::BrowserContext;
using content::BrowserThread;
@@ -85,7 +90,7 @@
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);
+ dom_storage_context->SetClearLocalState(true);
}
// Make sure we wait until the destructor has run.
scoped_refptr<base::ThreadTestHelper> helper(
@@ -99,3 +104,5 @@
ASSERT_FALSE(file_util::PathExists(temp_file_path_1));
ASSERT_TRUE(file_util::PathExists(temp_file_path_2));
}
+
+#endif // ENABLE_NEW_DOM_STORAGE_BACKEND

Powered by Google App Engine
This is Rietveld 408576698