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

Unified Diff: chrome/browser/chromeos/login/users/chrome_user_manager.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
Index: chrome/browser/chromeos/login/users/chrome_user_manager.cc
diff --git a/chrome/browser/chromeos/login/users/chrome_user_manager.cc b/chrome/browser/chromeos/login/users/chrome_user_manager.cc
index ef008daee33a52c88bab4db1716af39ed49b0850..e2561793055a60b2eaf83a97275c0edfc5bd1800 100644
--- a/chrome/browser/chromeos/login/users/chrome_user_manager.cc
+++ b/chrome/browser/chromeos/login/users/chrome_user_manager.cc
@@ -226,7 +226,8 @@ user_manager::UserList ChromeUserManager::GetUnlockUsers() const {
return user_manager::UserList();
user_manager::UserList unlock_users;
- Profile* profile = ProfileHelper::Get()->GetProfileByUser(GetPrimaryUser());
+ Profile* profile =
+ ProfileHelper::Get()->GetProfileByUserUnsafe(GetPrimaryUser());
std::string primary_behavior =
profile->GetPrefs()->GetString(prefs::kMultiProfileUserBehavior);
@@ -242,7 +243,7 @@ user_manager::UserList ChromeUserManager::GetUnlockUsers() const {
it != logged_in_users.end();
++it) {
user_manager::User* user = (*it);
- Profile* profile = ProfileHelper::Get()->GetProfileByUser(user);
+ Profile* profile = ProfileHelper::Get()->GetProfileByUserUnsafe(user);
const std::string behavior =
profile->GetPrefs()->GetString(prefs::kMultiProfileUserBehavior);
if (behavior == MultiProfileUserController::kBehaviorUnrestricted &&

Powered by Google App Engine
This is Rietveld 408576698