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

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: 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
« no previous file with comments | « chrome/browser/signin/screenlock_bridge.h ('k') | chrome/browser/signin/signin_manager_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/screenlock_bridge.cc
diff --git a/chrome/browser/signin/screenlock_bridge.cc b/chrome/browser/signin/screenlock_bridge.cc
index 586ed485f5f16e698a2309f6f84f39bcde7a5d96..db80a2d9c8a16e84fd18e04ae4203a71ea96c4c8 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();
}
« no previous file with comments | « chrome/browser/signin/screenlock_bridge.h ('k') | chrome/browser/signin/signin_manager_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698