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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.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/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index 1cd6531da472112af66f188ab75a1f1c6f456ec4..e998fafac2cd26ca34d3e5f928523738829ceac1 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -225,7 +225,7 @@ void OffTheRecordProfileImpl::TrackZoomLevelsFromParent() {
base::Unretained(this)));
}
-std::string OffTheRecordProfileImpl::GetProfileUserName() {
+std::string OffTheRecordProfileImpl::GetProfileUserName() const {
// Incognito profile should not return the username.
return std::string();
}
@@ -298,6 +298,10 @@ PrefService* OffTheRecordProfileImpl::GetPrefs() {
return prefs_;
}
+const PrefService* OffTheRecordProfileImpl::GetPrefs() const {
+ return prefs_;
+}
+
PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() {
return prefs_;
}
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698