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

Unified Diff: chrome/test/testing_profile.h

Issue 5023001: Handful of related instant changes: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux build Created 10 years, 1 month 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/common/pref_names.cc ('k') | views/background.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/testing_profile.h
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h
index 503c25c5cd77930efe618d624be85a02fbdbd7c9..fa593b33af18fa0397ab6ad1c7a8911117dcc96e 100644
--- a/chrome/test/testing_profile.h
+++ b/chrome/test/testing_profile.h
@@ -180,9 +180,10 @@ class TestingProfile : public Profile {
virtual PasswordStore* GetPasswordStore(ServiceAccessType access) {
return NULL;
}
- // Initialized the profile's PrefService with an explicity specified
- // PrefService. Must be called before the TestingProfile.
- // The profile takes ownership of |pref|.
+ // Sets the profile's PrefService. If a pref service hasn't been explicitly
+ // set GetPrefs creates one, so normally you need not invoke this. If you need
+ // to set a pref service you must invoke this before GetPrefs.
+ // TestingPrefService takes ownership of |prefs|.
void SetPrefService(PrefService* prefs);
virtual PrefService* GetPrefs();
virtual TemplateURLModel* GetTemplateURLModel() {
@@ -306,6 +307,7 @@ class TestingProfile : public Profile {
virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; }
virtual ChromeBlobStorageContext* GetBlobStorageContext() { return NULL; }
virtual ExtensionInfoMap* GetExtensionInfoMap() { return NULL; }
+ virtual PromoCounter* GetInstantPromoCounter() { return NULL; }
protected:
base::Time start_time_;
« no previous file with comments | « chrome/common/pref_names.cc ('k') | views/background.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698