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

Unified Diff: extensions/browser/extension_prefs.h

Issue 196663003: Introduce an extension parameter which is used to customize the extension. It's available for exter… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified test parameters Created 6 years, 9 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/data/extensions/settings_override/manifest.json ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_prefs.h
diff --git a/extensions/browser/extension_prefs.h b/extensions/browser/extension_prefs.h
index 032c578064ef95b40ec0362002ea966d97149a3c..620840b60a96d831b4f51ed0a44fee0857cb0399 100644
--- a/extensions/browser/extension_prefs.h
+++ b/extensions/browser/extension_prefs.h
@@ -180,7 +180,8 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
void OnExtensionInstalled(const Extension* extension,
Extension::State initial_state,
bool blacklisted_for_malware,
- const syncer::StringOrdinal& page_ordinal);
+ const syncer::StringOrdinal& page_ordinal,
+ const std::string& install_parameter);
// Called when an extension is uninstalled, so that prefs get cleaned up.
void OnExtensionUninstalled(const std::string& extension_id,
@@ -417,7 +418,8 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
Extension::State initial_state,
bool blacklisted_for_malware,
DelayReason delay_reason,
- const syncer::StringOrdinal& page_ordinal);
+ const syncer::StringOrdinal& page_ordinal,
+ const std::string& install_parameter);
// Removes any delayed install information we have for the given
// |extension_id|. Returns true if there was info to remove; false otherwise.
@@ -480,7 +482,7 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
- bool extensions_disabled() { return extensions_disabled_; }
+ bool extensions_disabled() const { return extensions_disabled_; }
ContentSettingsStore* content_settings_store() {
return content_settings_store_.get();
@@ -514,6 +516,11 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
const base::DictionaryValue* GetInstallSignature();
void SetInstallSignature(const base::DictionaryValue* signature);
+ // The installation parameter associated with the extension.
+ std::string GetInstallParam(const std::string& extension_id) const;
+ void SetInstallParam(const std::string& extension_id,
+ const std::string& install_parameter);
+
private:
friend class ExtensionPrefsBlacklistedExtensions; // Unit test.
friend class ExtensionPrefsUninstallExtension; // Unit test.
@@ -614,6 +621,7 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
const base::Time install_time,
Extension::State initial_state,
bool blacklisted_for_malware,
+ const std::string& install_parameter,
base::DictionaryValue* extension_dict);
// Helper function to complete initialization of the values in
« no previous file with comments | « chrome/test/data/extensions/settings_override/manifest.json ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698