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

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

Issue 2918203002: cros: Fix loading user profile w/o UserSessionManager (Closed)
Patch Set: rebase Created 3 years, 6 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 51890e29bd28c7ed1fe8ba0d9193bfd41c80e579..ce5a4833652459cd5da519f07eea35559312399f 100644
--- a/chrome/browser/download/notification/download_notification_browsertest.cc
+++ b/chrome/browser/download/notification/download_notification_browsertest.cc
@@ -1176,7 +1176,7 @@ class MultiProfileDownloadNotificationTest
}
Profile* GetProfileByIndex(int index) {
- return chromeos::ProfileHelper::GetProfileByUserIdHash(
+ return chromeos::ProfileHelper::GetProfileByUserIdHashForTest(
kTestAccounts[index].hash);
}
@@ -1190,8 +1190,8 @@ class MultiProfileDownloadNotificationTest
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);
+ chromeos::ProfileHelper::GetProfileByUserIdHashForTest(info.hash))
+ ->SetAuthenticatedAccountInfo(info.gaia_id, info.email);
}
};

Powered by Google App Engine
This is Rietveld 408576698