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

Unified Diff: chrome/browser/signin/screenlock_bridge.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: 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/signin/screenlock_bridge.cc
diff --git a/chrome/browser/signin/screenlock_bridge.cc b/chrome/browser/signin/screenlock_bridge.cc
index 1883814d69eb317162f5fc22430941f7b0e1a9d5..89cda91e03ff87e50a955acd8f629b5ae9c86a87 100644
--- a/chrome/browser/signin/screenlock_bridge.cc
+++ b/chrome/browser/signin/screenlock_bridge.cc
@@ -109,10 +109,11 @@ void ScreenlockBridge::UserPodCustomIconOptions::SetHardlockOnClick() {
}
// static
-std::string ScreenlockBridge::GetAuthenticatedUserEmail(Profile* profile) {
+std::string ScreenlockBridge::GetAuthenticatedUserEmail(
+ const Profile* profile) {
// |profile| has to be a signed-in profile with SigninManager already
// created. Otherwise, just crash to collect stack.
- SigninManagerBase* signin_manager =
+ const SigninManagerBase* signin_manager =
SigninManagerFactory::GetForProfileIfExists(profile);
return signin_manager->GetAuthenticatedUsername();
}

Powered by Google App Engine
This is Rietveld 408576698