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

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

Issue 2847013002: Switch to mojo localstorage backend by default. (Closed)
Patch Set: minor cleanup Created 3 years, 7 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/dom_storage/dom_storage_browsertest.cc
diff --git a/content/browser/dom_storage/dom_storage_browsertest.cc b/content/browser/dom_storage/dom_storage_browsertest.cc
index 238a69de3d7af45c4f5dce3449c3bb08614c77a6..c9efa248e17821d459b7e36fb93d4d32bbc9b3cc 100644
--- a/content/browser/dom_storage/dom_storage_browsertest.cc
+++ b/content/browser/dom_storage/dom_storage_browsertest.cc
@@ -25,6 +25,11 @@ class DOMStorageBrowserTest : public ContentBrowserTest {
public:
DOMStorageBrowserTest() {}
+ void SetUpCommandLine(base::CommandLine* command_line) override {
+ ContentBrowserTest::SetUpCommandLine(command_line);
+ command_line->AppendSwitch(switches::kDisableMojoLocalStorage);
+ }
+
void SimpleTest(const GURL& test_url, bool incognito) {
// The test page will perform tests then navigate to either
// a #pass or #fail ref.
@@ -46,7 +51,6 @@ class MojoDOMStorageBrowserTest : public DOMStorageBrowserTest {
public:
void SetUpCommandLine(base::CommandLine* command_line) override {
ContentBrowserTest::SetUpCommandLine(command_line);
- command_line->AppendSwitch(switches::kMojoLocalStorage);
}
LocalStorageContextMojo* context() {
@@ -120,8 +124,8 @@ class DOMStorageMigrationBrowserTest : public DOMStorageBrowserTest {
// Only enable mojo local storage if this is not a PRE_ test.
const testing::TestInfo* test =
testing::UnitTest::GetInstance()->current_test_info();
- if (!base::StartsWith(test->name(), "PRE_", base::CompareCase::SENSITIVE))
- command_line->AppendSwitch(switches::kMojoLocalStorage);
+ if (base::StartsWith(test->name(), "PRE_", base::CompareCase::SENSITIVE))
+ command_line->AppendSwitch(switches::kDisableMojoLocalStorage);
}
};

Powered by Google App Engine
This is Rietveld 408576698