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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc

Issue 431083003: Change new-avatar-menu to an enable-disable flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Issue with the rebase Created 6 years, 4 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/views/profiles/profile_chooser_view_browsertest.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc b/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
index 63947c89d53c0a1aef8a9849e816eebe31f83620..7378989f4f7f6d020148d8b4d647a1d5bd9e1d7a 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
@@ -53,13 +53,12 @@ ProfileChooserViewBrowserTest::~ProfileChooserViewBrowserTest() {
void ProfileChooserViewBrowserTest::SetUp() {
InProcessBrowserTest::SetUp();
- DCHECK(CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kNewAvatarMenu));
+ DCHECK(switches::IsNewAvatarMenu());
}
void ProfileChooserViewBrowserTest::SetUpCommandLine(
CommandLine* command_line) {
- command_line->AppendSwitch(switches::kNewAvatarMenu);
+ switches::EnableNewAvatarMenuForTesting(CommandLine::ForCurrentProcess());
}
void ProfileChooserViewBrowserTest::OpenProfileChooserView() {

Powered by Google App Engine
This is Rietveld 408576698