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

Unified Diff: chrome/test/testing_profile.h

Issue 5213002: Fix for Bug 50726 "Save extension list and "winning" prefs from extensions" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed Mattias' comments 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
Index: chrome/test/testing_profile.h
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h
index de7f32faffe01df0d15887a5dd6b0feed35e4542..045701f7cf958318a1f04d230256caa7b1033867 100644
--- a/chrome/test/testing_profile.h
+++ b/chrome/test/testing_profile.h
@@ -24,6 +24,7 @@ class AutocompleteClassifier;
class BookmarkModel;
class BrowserThemeProvider;
class CommandLine;
+class ExtensionPrefs;
class DesktopNotificationService;
class FaviconService;
class FindBarState;
@@ -32,6 +33,7 @@ class GeolocationPermissionContext;
class HistoryService;
class HostContentSettingsMap;
class PrefService;
+class PrefStore;
class ProfileSyncService;
class SessionService;
class TemplateURLModel;
@@ -186,6 +188,8 @@ class TestingProfile : public Profile {
// TestingPrefService takes ownership of |prefs|.
void SetPrefService(PrefService* prefs);
virtual PrefService* GetPrefs();
+ virtual PrefStore* GetExtensionPrefStore();
+ virtual void SetExtensionPrefStore(PrefStore* extension_pref_store);
virtual TemplateURLModel* GetTemplateURLModel() {
return template_url_model_.get();
}
@@ -318,6 +322,10 @@ class TestingProfile : public Profile {
// ref only for right type, lifecycle is managed by prefs_
TestingPrefService* testing_prefs_;
+ // Creates a TestingPrefService and associates it with the TestingProfile.
+ // Virtual for unit tests in order to create specialized PrefServices.
+ virtual void CreateTestingPrefService();
+
private:
// Destroys favicon service if it has been created.
void DestroyFaviconService();
@@ -326,9 +334,6 @@ class TestingProfile : public Profile {
// from the destructor.
void DestroyWebDataService();
- // Creates a TestingPrefService and associates it with the TestingProfile
- void CreateTestingPrefService();
-
// The favicon service. Only created if CreateFaviconService is invoked.
scoped_refptr<FaviconService> favicon_service_;
@@ -406,6 +411,10 @@ class TestingProfile : public Profile {
// is disposed.
scoped_refptr<ExtensionsService> extensions_service_;
+ scoped_ptr<ExtensionPrefs> extension_prefs_;
+
+ PrefStore* extension_pref_store_;
+
// The proxy prefs tracker.
scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;

Powered by Google App Engine
This is Rietveld 408576698