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

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

Issue 556003007: [Profiles] Improve the display name for default profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test + typo Created 6 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
« no previous file with comments | « chrome/browser/profiles/profiles_state.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6751783ca658398053b08936ae5ec590a8e63ace..d251eb7182523c2eefa0034e67b75647597dc550 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
@@ -352,6 +352,11 @@ TEST_F(ProfileChooserControllerTest, AccountManagementLayout) {
ProfileInfoCache* cache = testing_profile_manager()->profile_info_cache();
cache->SetUserNameOfProfileAtIndex(0, base::ASCIIToUTF16(kEmail));
+ // Mark that we are using the profile name on purpose, so that we don't
+ // fallback to testing the algorithm that chooses which default name
+ // should be used.
+ cache->SetProfileIsUsingDefaultNameAtIndex(0, false);
+
// Set up the signin manager and the OAuth2Tokens.
Profile* profile = browser()->profile();
SigninManagerFactory::GetForProfile(profile)->
« no previous file with comments | « chrome/browser/profiles/profiles_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698