Index: extensions/browser/extension_prefs.h |
diff --git a/extensions/browser/extension_prefs.h b/extensions/browser/extension_prefs.h |
index 31de38805c8959e7525e79798ac5381ee8fefcb8..dd1e1f93805e4fbfd11385d7bde03beab6afd920 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. |
@@ -477,7 +479,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(); |
@@ -511,6 +513,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. |
@@ -611,6 +618,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 |