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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 7189029: Implement an initial extension settings API. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make clang happy Created 9 years, 4 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
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | chrome/test/data/extensions/api_test/settings/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index ec0a0a39fd0e226b7c3aa25730cc623faf14e4c0..617b8564036b3f59875ef2c246152e268815540a 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -19,6 +19,7 @@
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
#include "chrome/browser/extensions/extension_pref_value_map.h"
#include "chrome/browser/extensions/extension_service.h"
+#include "chrome/browser/extensions/extension_settings.h"
#include "chrome/browser/extensions/extension_special_storage_policy.h"
#include "chrome/browser/favicon/favicon_service.h"
#include "chrome/browser/geolocation/chrome_geolocation_permission_context.h"
@@ -334,10 +335,13 @@ ExtensionService* TestingProfile::CreateExtensionService(
new ExtensionPrefs(GetPrefs(),
install_directory,
extension_pref_value_map_.get()));
+ extension_settings_ =
+ new ExtensionSettings(GetPath().AppendASCII("Extension Settings"));
extension_service_.reset(new ExtensionService(this,
command_line,
install_directory,
extension_prefs_.get(),
+ extension_settings_.get(),
autoupdate_enabled,
true));
return extension_service_.get();
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | chrome/test/data/extensions/api_test/settings/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698