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

Unified Diff: chrome/browser/ui/views/profiles/new_avatar_menu_button_browsertest.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/views/profiles/new_avatar_menu_button_browsertest.cc
===================================================================
--- chrome/browser/ui/views/profiles/new_avatar_menu_button_browsertest.cc (revision 277945)
+++ chrome/browser/ui/views/profiles/new_avatar_menu_button_browsertest.cc (working copy)
@@ -20,7 +20,6 @@
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/test_switches.h"
#include "chrome/test/base/testing_browser_process.h"
-#include "components/signin/core/common/profile_management_switches.h"
#include "content/public/test/test_utils.h"
#include "grit/generated_resources.h"
#include "ui/views/controls/button/label_button.h"
@@ -48,11 +47,12 @@
void NewAvatarMenuButtonTest::SetUp() {
InProcessBrowserTest::SetUp();
- DCHECK(switches::IsNewProfileManagement());
+ DCHECK(CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kNewProfileManagement));
}
void NewAvatarMenuButtonTest::SetUpCommandLine(CommandLine* command_line) {
- switches::EnableNewProfileManagementForTesting(command_line);
+ command_line->AppendSwitch(switches::kNewProfileManagement);
}
void NewAvatarMenuButtonTest::CreateTestingProfile() {

Powered by Google App Engine
This is Rietveld 408576698