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

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

Issue 1307093004: Remove references to IsNewAvatarMenu since the flag was removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review feedback Created 5 years, 3 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 5d130365a4941c78ce9a324deee789444f86899e..af7d97c133b0405676eafba65736e57ed643b079 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
@@ -150,8 +150,6 @@ class ProfileChooserControllerTest : public CocoaProfileTest {
};
TEST_F(ProfileChooserControllerTest, InitialLayoutWithNewMenu) {
- switches::EnableNewAvatarMenuForTesting(
- base::CommandLine::ForCurrentProcess());
StartProfileChooserController();
NSArray* subviews = [[[controller() window] contentView] subviews];
@@ -217,8 +215,6 @@ TEST_F(ProfileChooserControllerTest, InitialLayoutWithNewMenu) {
}
TEST_F(ProfileChooserControllerTest, RightClickTutorialShownAfterWelcome) {
- switches::EnableNewAvatarMenuForTesting(
- base::CommandLine::ForCurrentProcess());
// The welcome upgrade tutorial takes precedence so show it then dismiss it.
// The right click tutorial should be shown right away.
StartProfileChooserControllerWithTutorialMode(
@@ -229,8 +225,6 @@ TEST_F(ProfileChooserControllerTest, RightClickTutorialShownAfterWelcome) {
}
TEST_F(ProfileChooserControllerTest, RightClickTutorialShownAfterReopen) {
- switches::EnableNewAvatarMenuForTesting(
- base::CommandLine::ForCurrentProcess());
// The welcome upgrade tutorial takes precedence so show it then close the
// menu. Reopening the menu should show the tutorial.
StartProfileChooserController();
@@ -247,8 +241,6 @@ TEST_F(ProfileChooserControllerTest, RightClickTutorialShownAfterReopen) {
}
TEST_F(ProfileChooserControllerTest, RightClickTutorialNotShownAfterDismiss) {
- switches::EnableNewAvatarMenuForTesting(
- base::CommandLine::ForCurrentProcess());
// The welcome upgrade tutorial takes precedence so show it then close the
// menu. Reopening the menu should show the tutorial.
StartProfileChooserController();
@@ -280,9 +272,6 @@ TEST_F(ProfileChooserControllerTest, RightClickTutorialNotShownAfterDismiss) {
}
TEST_F(ProfileChooserControllerTest, OtherProfilesSortedAlphabetically) {
- switches::EnableNewAvatarMenuForTesting(
- base::CommandLine::ForCurrentProcess());
-
// Add two extra profiles, to make sure sorting is alphabetical and not
// by order of creation.
testing_profile_manager()->CreateTestingProfile(
@@ -321,8 +310,6 @@ TEST_F(ProfileChooserControllerTest, OtherProfilesSortedAlphabetically) {
TEST_F(ProfileChooserControllerTest,
LocalProfileActiveCardLinksWithNewMenu) {
- switches::EnableNewAvatarMenuForTesting(
- base::CommandLine::ForCurrentProcess());
StartProfileChooserController();
NSArray* subviews = [[[controller() window] contentView] subviews];
ASSERT_EQ(2U, [subviews count]);
@@ -369,8 +356,6 @@ TEST_F(ProfileChooserControllerTest,
TEST_F(ProfileChooserControllerTest,
SignedInProfileActiveCardLinksWithNewMenu) {
- switches::EnableNewAvatarMenuForTesting(
- base::CommandLine::ForCurrentProcess());
// Sign in the first profile.
ProfileInfoCache* cache = testing_profile_manager()->profile_info_cache();
cache->SetAuthInfoOfProfileAtIndex(0, kGaiaId, base::ASCIIToUTF16(kEmail));

Powered by Google App Engine
This is Rietveld 408576698