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_; |
} |