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

Unified Diff: chrome/browser/supervised_user/chromeos/manager_password_service_factory.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/supervised_user/chromeos/manager_password_service_factory.cc
diff --git a/chrome/browser/supervised_user/chromeos/manager_password_service_factory.cc b/chrome/browser/supervised_user/chromeos/manager_password_service_factory.cc
index 77d62054a426727fdc003b93ef0a0eef18d63926..e7fb7e8ebb9277c5b1b113c0fbdecdfaa02076e4 100644
--- a/chrome/browser/supervised_user/chromeos/manager_password_service_factory.cc
+++ b/chrome/browser/supervised_user/chromeos/manager_password_service_factory.cc
@@ -44,7 +44,8 @@ ManagerPasswordServiceFactory::
KeyedService* ManagerPasswordServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = static_cast<Profile*>(context);
- user_manager::User* user = ProfileHelper::Get()->GetUserByProfile(profile);
+ const user_manager::User* user =
+ ProfileHelper::Get()->GetUserByProfile(profile);
if (ChromeUserManager::Get()->GetSupervisedUserManager()->HasSupervisedUsers(
user->email())) {
ManagerPasswordService* result = new ManagerPasswordService();

Powered by Google App Engine
This is Rietveld 408576698