Index: chrome/browser/cocoa/extensions/extension_popup_controller_unittest.mm |
diff --git a/chrome/browser/cocoa/extensions/extension_popup_controller_unittest.mm b/chrome/browser/cocoa/extensions/extension_popup_controller_unittest.mm |
index ba7e2b7f9df6ebd36f2c184fab9270de00534f94..b4bbb9c69cc83bcabc52a3f1777dde6c41b69d72 100644 |
--- a/chrome/browser/cocoa/extensions/extension_popup_controller_unittest.mm |
+++ b/chrome/browser/cocoa/extensions/extension_popup_controller_unittest.mm |
@@ -6,6 +6,7 @@ |
#include "chrome/browser/cocoa/browser_test_helper.h" |
#include "chrome/browser/cocoa/cocoa_test_helper.h" |
#include "chrome/browser/cocoa/extensions/extension_popup_controller.h" |
+#include "chrome/browser/extensions/extension_prefs.h" |
#include "chrome/browser/extensions/extension_process_manager.h" |
#include "chrome/browser/extensions/extensions_service.h" |
#include "chrome/test/testing_profile.h" |
@@ -25,9 +26,12 @@ class ExtensionTestingProfile : public TestingProfile { |
DCHECK(!GetExtensionsService()); |
manager_.reset(ExtensionProcessManager::Create(this)); |
+ extension_prefs_.reset(new ExtensionPrefs(this, |
+ GetExtensionsInstallDir())); |
service_ = new ExtensionsService(this, |
CommandLine::ForCurrentProcess(), |
- GetExtensionsInstallDir(), |
+ GetExtensionsInstallDir(), |
+ extension_prefs_.get(), |
false); |
service_->set_extensions_enabled(true); |
service_->set_show_extensions_prompts(false); |
@@ -38,6 +42,7 @@ class ExtensionTestingProfile : public TestingProfile { |
void ShutdownExtensionProfile() { |
manager_.reset(); |
service_ = NULL; |
+ extension_prefs_.reset(); |
} |
virtual ExtensionProcessManager* GetExtensionProcessManager() { |
@@ -50,6 +55,7 @@ class ExtensionTestingProfile : public TestingProfile { |
private: |
scoped_ptr<ExtensionProcessManager> manager_; |
+ scoped_ptr<ExtensionPrefs> extension_prefs_; |
scoped_refptr<ExtensionsService> service_; |
DISALLOW_COPY_AND_ASSIGN(ExtensionTestingProfile); |