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

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

Issue 431083003: Change new-avatar-menu to an enable-disable flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase - [Still Includes NewAvatarMenu by default] Created 6 years, 5 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
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
index 72e8d3a80a7cef0986586e8fba20c89d7d33e7a5..1c2e1fe342df88628eee1cb93e51377cda3fe728 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
@@ -75,10 +75,6 @@ class ProfileChooserControllerTest : public CocoaProfileTest {
[controller_ showWindow:nil];
}
- void EnableNewAvatarMenuOnly() {
- CommandLine::ForCurrentProcess()->AppendSwitch(switches::kNewAvatarMenu);
- }
-
void EnableFastUserSwitching() {
CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kFastUserSwitching);
@@ -97,7 +93,6 @@ class ProfileChooserControllerTest : public CocoaProfileTest {
};
TEST_F(ProfileChooserControllerTest, InitialLayoutWithNewMenu) {
- EnableNewAvatarMenuOnly();
StartProfileChooserController();
NSArray* subviews = [[[controller() window] contentView] subviews];
@@ -159,7 +154,6 @@ TEST_F(ProfileChooserControllerTest, InitialLayoutWithNewMenu) {
}
TEST_F(ProfileChooserControllerTest, InitialLayoutWithFastUserSwitcher) {
- EnableNewAvatarMenuOnly();
EnableFastUserSwitching();
StartProfileChooserController();
@@ -218,7 +212,6 @@ TEST_F(ProfileChooserControllerTest, InitialLayoutWithFastUserSwitcher) {
}
TEST_F(ProfileChooserControllerTest, OtherProfilesSortedAlphabetically) {
- EnableNewAvatarMenuOnly();
EnableFastUserSwitching();
// Add two extra profiles, to make sure sorting is alphabetical and not
@@ -259,7 +252,6 @@ TEST_F(ProfileChooserControllerTest, OtherProfilesSortedAlphabetically) {
TEST_F(ProfileChooserControllerTest,
LocalProfileActiveCardLinksWithNewMenu) {
- EnableNewAvatarMenuOnly();
StartProfileChooserController();
NSArray* subviews = [[[controller() window] contentView] subviews];
ASSERT_EQ(1U, [subviews count]);
@@ -305,7 +297,6 @@ TEST_F(ProfileChooserControllerTest,
TEST_F(ProfileChooserControllerTest,
SignedInProfileActiveCardLinksWithNewMenu) {
- EnableNewAvatarMenuOnly();
// 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