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

Unified Diff: chrome/test/base/testing_profile.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/test/base/testing_profile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index cffc5a607904950e04e09aaf6b7762e899f8c20a..75d2c5ca8736137cc198e0598aa7709594136293 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -696,7 +696,7 @@ TestingProfile* TestingProfile::AsTestingProfile() {
return this;
}
-std::string TestingProfile::GetProfileUserName() {
+std::string TestingProfile::GetProfileUserName() const {
return profile_name_;
}
@@ -824,6 +824,11 @@ PrefService* TestingProfile::GetPrefs() {
return prefs_.get();
}
+const PrefService* TestingProfile::GetPrefs() const {
+ DCHECK(prefs_);
+ return prefs_.get();
+}
+
DownloadManagerDelegate* TestingProfile::GetDownloadManagerDelegate() {
return NULL;
}
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698