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

Unified Diff: chrome/browser/ui/browser_command_controller_unittest.cc

Issue 340723002: Revert 277793 "Enable consistent identity on android platform by..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2056/src/
Patch Set: Created 6 years, 6 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: chrome/browser/ui/browser_command_controller_unittest.cc
===================================================================
--- chrome/browser/ui/browser_command_controller_unittest.cc (revision 277945)
+++ chrome/browser/ui/browser_command_controller_unittest.cc (working copy)
@@ -211,8 +211,9 @@
return;
// The command line is reset at the end of every test by the test suite.
- switches::EnableNewProfileManagementForTesting(
- CommandLine::ForCurrentProcess());
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kNewProfileManagement);
+ EXPECT_TRUE(switches::IsNewProfileManagement());
TestingProfileManager testing_profile_manager(
TestingBrowserProcess::GetGlobal());
@@ -238,8 +239,9 @@
return;
// The command line is reset at the end of every test by the test suite.
- switches::EnableNewProfileManagementForTesting(
- CommandLine::ForCurrentProcess());
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kNewProfileManagement);
+ EXPECT_TRUE(switches::IsNewProfileManagement());
TestingProfileManager testing_profile_manager(
TestingBrowserProcess::GetGlobal());
@@ -292,8 +294,9 @@
// The new style avatar menu should also be disabled.
// The command line is reset at the end of every test by the test suite.
- switches::EnableNewProfileManagementForTesting(
- CommandLine::ForCurrentProcess());
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kNewProfileManagement);
+ EXPECT_TRUE(switches::IsNewProfileManagement());
EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU));
}

Powered by Google App Engine
This is Rietveld 408576698