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

Unified Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

Issue 898003002: [Cleanup] Const-correct the profile() method for the EasyUnlockService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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/session/user_session_manager.cc
diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc
index 7b7dfd1f048cfce604f0816c8ce10315b90a57e3..d50a9a7296d2354ab837dc01d55e17161d4cda1a 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -445,7 +445,7 @@ void UserSessionManager::RestoreAuthenticationSession(Profile* user_profile) {
return;
}
- user_manager::User* user =
+ const user_manager::User* user =
ProfileHelper::Get()->GetUserByProfile(user_profile);
DCHECK(user);
if (!net::NetworkChangeNotifier::IsOffline()) {
@@ -858,7 +858,8 @@ void UserSessionManager::OnProfileCreated(const UserContext& user_context,
void UserSessionManager::InitProfilePreferences(
Profile* profile,
const UserContext& user_context) {
- user_manager::User* user = ProfileHelper::Get()->GetUserByProfile(profile);
+ const user_manager::User* user =
+ ProfileHelper::Get()->GetUserByProfile(profile);
if (user->is_active()) {
input_method::InputMethodManager* manager =
input_method::InputMethodManager::Get();
@@ -1513,7 +1514,7 @@ void UserSessionManager::RespectLocalePreferenceWrapper(
if (browser_shutdown::IsTryingToQuit())
return;
- user_manager::User* const user =
+ const user_manager::User* const user =
ProfileHelper::Get()->GetUserByProfile(profile);
locale_util::SwitchLanguageCallback locale_switched_callback(base::Bind(
&UserSessionManager::RunCallbackOnLocaleLoaded, callback,

Powered by Google App Engine
This is Rietveld 408576698