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

Unified Diff: content/browser/in_process_webkit/dom_storage_unittest.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_unittest.cc
===================================================================
--- content/browser/in_process_webkit/dom_storage_unittest.cc (revision 127221)
+++ content/browser/in_process_webkit/dom_storage_unittest.cc (working copy)
@@ -8,8 +8,13 @@
#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"
+#include "webkit/dom_storage/dom_storage_types.h"
#include "webkit/quota/mock_special_storage_policy.h"
+#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
+// No longer applicable.
+#else
+
using content::BrowserContext;
using content::BrowserThread;
using content::BrowserThreadImpl;
@@ -108,7 +113,7 @@
BrowserContext::GetDOMStorageContext(browser_context.get()));
dom_storage_context->special_storage_policy_ = special_storage_policy;
- dom_storage_context->set_clear_local_state_on_exit(true);
+ dom_storage_context->SetClearLocalState(true);
// Save session state. This should bypass the destruction-time deletion.
dom_storage_context->SaveSessionState();
@@ -126,3 +131,5 @@
EXPECT_TRUE(file_util::PathExists(session_only_database_path));
EXPECT_TRUE(file_util::PathExists(permanent_database_path));
}
+
+#endif // ENABLE_NEW_DOM_STORAGE_BACKEND
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_uitest.cc ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698