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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm

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/cocoa/profiles/profile_chooser_controller_unittest.mm
===================================================================
--- chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm (revision 277945)
+++ chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm (working copy)
@@ -22,7 +22,6 @@
#include "chrome/common/chrome_switches.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/signin/core/browser/signin_manager.h"
-#include "components/signin/core/common/profile_management_switches.h"
const std::string kEmail = "user@gmail.com";
const std::string kSecondaryEmail = "user2@gmail.com";
@@ -75,6 +74,11 @@
[controller_ showWindow:nil];
}
+ void EnableNewProfileManagement() {
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kNewProfileManagement);
+ }
+
void EnableNewAvatarMenuOnly() {
CommandLine::ForCurrentProcess()->AppendSwitch(switches::kNewAvatarMenu);
}
@@ -97,8 +101,7 @@
};
TEST_F(ProfileChooserControllerTest, InitialLayoutWithNewManagement) {
- switches::EnableNewProfileManagementForTesting(
- CommandLine::ForCurrentProcess());
+ EnableNewProfileManagement();
StartProfileChooserController();
NSArray* subviews = [[[controller() window] contentView] subviews];
@@ -198,8 +201,7 @@
}
TEST_F(ProfileChooserControllerTest, InitialLayoutWithFastUserSwitcher) {
- switches::EnableNewProfileManagementForTesting(
- CommandLine::ForCurrentProcess());
+ EnableNewProfileManagement();
EnableFastUserSwitching();
StartProfileChooserController();
@@ -282,9 +284,8 @@
}
TEST_F(ProfileChooserControllerTest,
- LocalProfileActiveCardLinksWithNewManagement) {
- switches::EnableNewProfileManagementForTesting(
- CommandLine::ForCurrentProcess());
+ LocalProfileActiveCardLinksWithNewManagement) {
+ EnableNewProfileManagement();
StartProfileChooserController();
NSArray* subviews = [[[controller() window] contentView] subviews];
EXPECT_EQ(1U, [subviews count]);
@@ -319,9 +320,8 @@
}
TEST_F(ProfileChooserControllerTest,
- SignedInProfileActiveCardLinksWithNewManagement) {
- switches::EnableNewProfileManagementForTesting(
- CommandLine::ForCurrentProcess());
+ SignedInProfileActiveCardLinksWithNewManagement) {
+ EnableNewProfileManagement();
// Sign in the first profile.
ProfileInfoCache* cache = testing_profile_manager()->profile_info_cache();
cache->SetUserNameOfProfileAtIndex(0, base::ASCIIToUTF16(kEmail));
@@ -365,8 +365,7 @@
}
TEST_F(ProfileChooserControllerTest, AccountManagementLayout) {
- switches::EnableNewProfileManagementForTesting(
- CommandLine::ForCurrentProcess());
+ EnableNewProfileManagement();
// Sign in the first profile.
ProfileInfoCache* cache = testing_profile_manager()->profile_info_cache();
cache->SetUserNameOfProfileAtIndex(0, base::ASCIIToUTF16(kEmail));

Powered by Google App Engine
This is Rietveld 408576698