| Index: extensions/browser/extension_prefs.h
|
| diff --git a/extensions/browser/extension_prefs.h b/extensions/browser/extension_prefs.h
|
| index 89258ae8d00a618327f6d7151e12a367b908593f..e4ce40918ab338b7934472f1e30bbb1d6938509c 100644
|
| --- a/extensions/browser/extension_prefs.h
|
| +++ b/extensions/browser/extension_prefs.h
|
| @@ -181,7 +181,8 @@ class ExtensionPrefs : public ExtensionScopedPrefs,
|
| 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,
|
| @@ -418,7 +419,8 @@ class ExtensionPrefs : public ExtensionScopedPrefs,
|
| 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.
|
| @@ -478,7 +480,7 @@ class ExtensionPrefs : public ExtensionScopedPrefs,
|
|
|
| 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();
|
| @@ -512,6 +514,11 @@ class ExtensionPrefs : public ExtensionScopedPrefs,
|
| 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.
|
| @@ -612,6 +619,7 @@ class ExtensionPrefs : public ExtensionScopedPrefs,
|
| 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
|
|
|