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

Unified Diff: chrome/browser/download/notification/download_notification_browsertest.cc

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests. Created 4 years, 10 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/download/notification/download_notification_browsertest.cc
diff --git a/chrome/browser/download/notification/download_notification_browsertest.cc b/chrome/browser/download/notification/download_notification_browsertest.cc
index 98f81ea283d4bd14ddb54e9cd47b202fe62c8d1a..fe7205c1b4191f138d5f9927294afdbcb8612116 100644
--- a/chrome/browser/download/notification/download_notification_browsertest.cc
+++ b/chrome/browser/download/notification/download_notification_browsertest.cc
@@ -1194,10 +1194,12 @@ class MultiProfileDownloadNotificationTest
user_manager::UserManager* const user_manager =
user_manager::UserManager::Get();
if (log_in)
- user_manager->UserLoggedIn(AccountId::FromUserEmail(info.email),
- info.hash, false);
- user_manager->SaveUserDisplayName(AccountId::FromUserEmail(info.email),
- base::UTF8ToUTF16(info.display_name));
+ user_manager->UserLoggedIn(
+ AccountId::FromUserEmailGaiaId(info.email, info.gaia_id), info.hash,
+ false);
+ user_manager->SaveUserDisplayName(
+ AccountId::FromUserEmailGaiaId(info.email, info.gaia_id),
+ base::UTF8ToUTF16(info.display_name));
SigninManagerFactory::GetForProfile(
chromeos::ProfileHelper::GetProfileByUserIdHash(info.hash))
->SetAuthenticatedAccountInfo(info.gaia_id, info.email);

Powered by Google App Engine
This is Rietveld 408576698