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

Unified Diff: chrome/browser/invalidation/profile_invalidation_provider_factory_browsertest.cc

Issue 445353004: GetProfileByUser deprecated and renamed to GetProfileByUserUnsafe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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
Index: chrome/browser/invalidation/profile_invalidation_provider_factory_browsertest.cc
diff --git a/chrome/browser/invalidation/profile_invalidation_provider_factory_browsertest.cc b/chrome/browser/invalidation/profile_invalidation_provider_factory_browsertest.cc
index 4c99525bebc3eebc806717858117ff3b65b7f981..d4e7003569a1b0c2d4a80fa21073b664b37c6d49 100644
--- a/chrome/browser/invalidation/profile_invalidation_provider_factory_browsertest.cc
+++ b/chrome/browser/invalidation/profile_invalidation_provider_factory_browsertest.cc
@@ -116,9 +116,10 @@ IN_PROC_BROWSER_TEST_F(ProfileInvalidationProviderFactoryGuestBrowserTest,
NoInvalidationService) {
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* login_profile =
chromeos::ProfileHelper::GetSigninProfile()->GetOriginalProfile();
EXPECT_FALSE(CanConstructProfileInvalidationProvider(guest_profile));

Powered by Google App Engine
This is Rietveld 408576698