diff options
Diffstat (limited to 'chrome/browser/app_controller_mac_unittest.mm')
-rw-r--r-- | chrome/browser/app_controller_mac_unittest.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/app_controller_mac_unittest.mm b/chrome/browser/app_controller_mac_unittest.mm index 5994196..a0de9d4 100644 --- a/chrome/browser/app_controller_mac_unittest.mm +++ b/chrome/browser/app_controller_mac_unittest.mm @@ -124,7 +124,7 @@ TEST_F(AppControllerTest, TestSigninMenuItemNoErrors) { NSString* alreadySignedIn = l10n_util::GetNSStringFWithFixup( IDS_SYNC_MENU_SYNCED_LABEL, base::UTF8ToUTF16(username)); SigninManager* signin = SigninManagerFactory::GetForProfile(profile_); - signin->SetAuthenticatedUsername(username); + signin->SetAuthenticatedAccountInfo(username, username); ProfileSyncService* sync = ProfileSyncServiceFactory::GetForProfile(profile_); sync->SetSyncSetupCompleted(); [AppController updateSigninItem:syncMenuItem @@ -144,7 +144,7 @@ TEST_F(AppControllerTest, TestSigninMenuItemAuthError) { // Now sign in. std::string username = "foo@example.com"; SigninManager* signin = SigninManagerFactory::GetForProfile(profile_); - signin->SetAuthenticatedUsername(username); + signin->SetAuthenticatedAccountInfo(username, username); ProfileSyncService* sync = ProfileSyncServiceFactory::GetForProfile(profile_); sync->SetSyncSetupCompleted(); // Force an auth error. |