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

Unified Diff: chrome/browser/chromeos/drive/drive_notification_manager_factory_browsertest.cc

Issue 445353004: GetProfileByUser deprecated and renamed to GetProfileByUserUnsafe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. Created 6 years, 4 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 | « no previous file | chrome/browser/chromeos/first_run/first_run.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_notification_manager_factory_browsertest.cc
diff --git a/chrome/browser/chromeos/drive/drive_notification_manager_factory_browsertest.cc b/chrome/browser/chromeos/drive/drive_notification_manager_factory_browsertest.cc
index 2176ec3b0983ab633d82ee332f940a7eff17c040..6773e65d5cd923dfacf015678ff5236f0004f1b4 100644
--- a/chrome/browser/chromeos/drive/drive_notification_manager_factory_browsertest.cc
+++ b/chrome/browser/chromeos/drive/drive_notification_manager_factory_browsertest.cc
@@ -54,9 +54,10 @@ IN_PROC_BROWSER_TEST_F(DriveNotificationManagerFactoryGuestBrowserTest,
NoDriveNotificationManager) {
chromeos::UserManager* user_manager = chromeos::UserManager::Get();
EXPECT_TRUE(user_manager->IsLoggedInAsGuest());
- Profile* guest_profile = chromeos::ProfileHelper::Get()
- ->GetProfileByUser(user_manager->GetActiveUser())
- ->GetOriginalProfile();
+ Profile* guest_profile =
+ chromeos::ProfileHelper::Get()
+ ->GetProfileByUserUnsafe(user_manager->GetActiveUser())
+ ->GetOriginalProfile();
Profile* signin_profile =
chromeos::ProfileHelper::GetSigninProfile()->GetOriginalProfile();
EXPECT_FALSE(DriveNotificationManagerFactory::FindForBrowserContext(
« no previous file with comments | « no previous file | chrome/browser/chromeos/first_run/first_run.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698