Index: chrome/browser/app_controller_mac_unittest.mm |
diff --git a/chrome/browser/app_controller_mac_unittest.mm b/chrome/browser/app_controller_mac_unittest.mm |
index 5994196a135be63fdfc0ad0831d817670d71b171..a0de9d4e3be69e52f86eaf1fe24adb92d64c42d1 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. |