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() { |