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

Unified Diff: chrome/browser/ui/ash/session_state_delegate_chromeos.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 | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/session_state_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/session_state_delegate_chromeos.cc b/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
index 286e2db3c549ad299a0774ea419e8f365ccdc747..613c87aa862a20fc9c2190f353a619343d0a0aa8 100644
--- a/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
@@ -52,7 +52,7 @@ content::BrowserContext* SessionStateDelegateChromeos::GetBrowserContextByIndex(
user_manager::User* user =
chromeos::UserManager::Get()->GetLRULoggedInUsers()[index];
DCHECK(user);
- return chromeos::ProfileHelper::Get()->GetProfileByUser(user);
+ return chromeos::ProfileHelper::Get()->GetProfileByUserUnsafe(user);
}
content::BrowserContext*
@@ -63,7 +63,7 @@ SessionStateDelegateChromeos::GetBrowserContextForWindow(
const user_manager::User* user =
chromeos::UserManager::Get()->FindUser(user_id);
DCHECK(user);
- return chromeos::ProfileHelper::Get()->GetProfileByUser(user);
+ return chromeos::ProfileHelper::Get()->GetProfileByUserUnsafe(user);
}
int SessionStateDelegateChromeos::GetMaximumNumberOfLoggedInUsers() const {
@@ -101,7 +101,8 @@ bool SessionStateDelegateChromeos::ShouldLockScreenBeforeSuspending() const {
it != logged_in_users.end();
++it) {
user_manager::User* user = (*it);
- Profile* profile = chromeos::ProfileHelper::Get()->GetProfileByUser(user);
+ Profile* profile =
+ chromeos::ProfileHelper::Get()->GetProfileByUserUnsafe(user);
if (profile->GetPrefs()->GetBoolean(prefs::kEnableAutoScreenLock))
return true;
}
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698