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

Unified Diff: chrome/browser/profiles/profile_keyed_base_factory.cc

Issue 10908088: Cleanup: Constify some ProfileKeyedBaseFactory methods and all overrides. Remove ProfileKeyedBaseFa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase, remove a few more lines of code Created 8 years, 3 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/profiles/profile_keyed_base_factory.cc
===================================================================
--- chrome/browser/profiles/profile_keyed_base_factory.cc (revision 154991)
+++ chrome/browser/profiles/profile_keyed_base_factory.cc (working copy)
@@ -81,23 +81,19 @@
}
}
-void ProfileKeyedBaseFactory::ForceRegisterPrefsForTest(PrefService* prefs) {
- RegisterUserPrefs(prefs);
-}
-
-bool ProfileKeyedBaseFactory::ServiceRedirectedInIncognito() {
+bool ProfileKeyedBaseFactory::ServiceRedirectedInIncognito() const {
return false;
}
-bool ProfileKeyedBaseFactory::ServiceHasOwnInstanceInIncognito() {
+bool ProfileKeyedBaseFactory::ServiceHasOwnInstanceInIncognito() const {
return false;
}
-bool ProfileKeyedBaseFactory::ServiceIsCreatedWithProfile() {
+bool ProfileKeyedBaseFactory::ServiceIsCreatedWithProfile() const {
return false;
}
-bool ProfileKeyedBaseFactory::ServiceIsNULLWhileTesting() {
+bool ProfileKeyedBaseFactory::ServiceIsNULLWhileTesting() const {
return false;
}
@@ -109,7 +105,7 @@
registered_preferences_.erase(profile);
}
-bool ProfileKeyedBaseFactory::ArePreferencesSetOn(Profile* profile) {
+bool ProfileKeyedBaseFactory::ArePreferencesSetOn(Profile* profile) const {
return registered_preferences_.find(profile) !=
registered_preferences_.end();
}
« no previous file with comments | « chrome/browser/profiles/profile_keyed_base_factory.h ('k') | chrome/browser/protector/protector_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698