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

Unified Diff: chrome/browser/profiles/profile_info_cache_unittest.cc

Issue 1124383004: Removes the new-avatar-menu flags, enabling the feature for all users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 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/profiles/profile_info_cache_unittest.cc
diff --git a/chrome/browser/profiles/profile_info_cache_unittest.cc b/chrome/browser/profiles/profile_info_cache_unittest.cc
index 848b35ce6beee55c0f12bfc0b40da546a831e856..9d09894cc0307ddffdb46fe6aa2586d09d8ff498 100644
--- a/chrome/browser/profiles/profile_info_cache_unittest.cc
+++ b/chrome/browser/profiles/profile_info_cache_unittest.cc
@@ -667,45 +667,3 @@ TEST_F(ProfileInfoCacheTest, MigrateLegacyProfileNamesWithNewAvatarMenu) {
GetCache()->GetIndexOfProfileWithPath(path_5)));
}
#endif
-
-TEST_F(ProfileInfoCacheTest,
- DontMigrateLegacyProfileNamesWithoutNewAvatarMenu) {
- switches::DisableNewAvatarMenuForTesting(
msw 2015/05/18 18:28:30 Can you remove this helper, DisableNewAvatarMenuFo
- base::CommandLine::ForCurrentProcess());
-
- EXPECT_EQ(0U, GetCache()->GetNumberOfProfiles());
-
- base::string16 name_1 = ASCIIToUTF16("Default Profile");
- base::FilePath path_1 = GetProfilePath("path_1");
- GetCache()->AddProfileToCache(path_1, name_1,
- std::string(), base::string16(), 0,
- std::string());
- base::string16 name_2 = ASCIIToUTF16("First user");
- base::FilePath path_2 = GetProfilePath("path_2");
- GetCache()->AddProfileToCache(path_2, name_2,
- std::string(), base::string16(), 1,
- std::string());
- base::string16 name_3 = ASCIIToUTF16("Lemonade");
- base::FilePath path_3 = GetProfilePath("path_3");
- GetCache()->AddProfileToCache(path_3, name_3,
- std::string(), base::string16(), 2,
- std::string());
- base::string16 name_4 = ASCIIToUTF16("Batman");
- base::FilePath path_4 = GetProfilePath("path_4");
- GetCache()->AddProfileToCache(path_4, name_4,
- std::string(), base::string16(), 3,
- std::string());
- EXPECT_EQ(4U, GetCache()->GetNumberOfProfiles());
-
- ResetCache();
-
- // Profile names should have been preserved.
- EXPECT_EQ(name_1, GetCache()->GetNameOfProfileAtIndex(
- GetCache()->GetIndexOfProfileWithPath(path_1)));
- EXPECT_EQ(name_2, GetCache()->GetNameOfProfileAtIndex(
- GetCache()->GetIndexOfProfileWithPath(path_2)));
- EXPECT_EQ(name_3, GetCache()->GetNameOfProfileAtIndex(
- GetCache()->GetIndexOfProfileWithPath(path_3)));
- EXPECT_EQ(name_4, GetCache()->GetNameOfProfileAtIndex(
- GetCache()->GetIndexOfProfileWithPath(path_4)));
-}

Powered by Google App Engine
This is Rietveld 408576698