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

Unified Diff: chrome/test/testing_profile.cc

Issue 5646003: Sanitize PrefStore interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, fix up unit tests. Created 10 years 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
« chrome/test/testing_pref_service.h ('K') | « chrome/test/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/testing_profile.cc
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
index 52e533222e48cc731591037007bcc8b2a815188a..e838595a204ab8a5789e14aa8dd922019201f9c2 100644
--- a/chrome/test/testing_profile.cc
+++ b/chrome/test/testing_profile.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/browser_thread.h"
#include "chrome/browser/content_settings/host_content_settings_map.h"
#include "chrome/browser/dom_ui/ntp_resource_cache.h"
+#include "chrome/browser/extensions/extension_pref_store.h"
#include "chrome/browser/extensions/extensions_service.h"
#include "chrome/browser/favicon_service.h"
#include "chrome/browser/geolocation/geolocation_content_settings_map.h"
@@ -347,7 +348,10 @@ void TestingProfile::UseThemeProvider(BrowserThemeProvider* theme_provider) {
scoped_refptr<ExtensionsService> TestingProfile::CreateExtensionsService(
const CommandLine* command_line,
const FilePath& install_directory) {
- extension_prefs_.reset(new ExtensionPrefs(GetPrefs(),install_directory));
+ extension_pref_store_.reset(new ExtensionPrefStore);
+ extension_prefs_.reset(new ExtensionPrefs(GetPrefs(),
+ install_directory,
+ extension_pref_store_.get()));
extensions_service_ = new ExtensionsService(this,
command_line,
install_directory,
« chrome/test/testing_pref_service.h ('K') | « chrome/test/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698