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

Unified Diff: chrome/browser/chromeos/policy/policy_cert_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/chromeos/policy/policy_cert_service_factory.cc
diff --git a/chrome/browser/chromeos/policy/policy_cert_service_factory.cc b/chrome/browser/chromeos/policy/policy_cert_service_factory.cc
index b0bee1cfc9e6d77452cbafd368668c3fcf60a678..4955bc020602f28583d3a15f81389f4d646d31ac 100644
--- a/chrome/browser/chromeos/policy/policy_cert_service_factory.cc
+++ b/chrome/browser/chromeos/policy/policy_cert_service_factory.cc
@@ -95,8 +95,9 @@ KeyedService* PolicyCertServiceFactory::BuildServiceInstanceFor(
Profile* profile = static_cast<Profile*>(context);
user_manager::UserManager* user_manager = user_manager::UserManager::Get();
- user_manager::User* user = chromeos::ProfileHelper::Get()->GetUserByProfile(
- profile->GetOriginalProfile());
+ const user_manager::User* user =
+ chromeos::ProfileHelper::Get()->GetUserByProfile(
+ profile->GetOriginalProfile());
if (!user)
return NULL;

Powered by Google App Engine
This is Rietveld 408576698