diff options
author | bbudge@google.com <bbudge@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-12 21:53:26 +0000 |
---|---|---|
committer | bbudge@google.com <bbudge@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-12 21:53:26 +0000 |
commit | 8266d6688589e140bf71fb862be16239880e20e6 (patch) | |
tree | 1526eeabffbdec27ab7785345905e64d8ba0a6ef /chrome/browser/extensions/extension_prefs.h | |
parent | 5122c62e1768b7384ee28937b69cd90baa5a0c32 (diff) | |
download | chromium_src-8266d6688589e140bf71fb862be16239880e20e6.zip chromium_src-8266d6688589e140bf71fb862be16239880e20e6.tar.gz chromium_src-8266d6688589e140bf71fb862be16239880e20e6.tar.bz2 |
Remember whether an Extension/App was installed from the Web Store.
http://code.google.com/p/chromium/issues/detail?id=85937
Review URL: http://codereview.chromium.org/7324009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92243 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_prefs.h')
-rw-r--r-- | chrome/browser/extensions/extension_prefs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h index a5fbbb1..6e25c5b 100644 --- a/chrome/browser/extensions/extension_prefs.h +++ b/chrome/browser/extensions/extension_prefs.h @@ -97,7 +97,8 @@ class ExtensionPrefs : public ExtensionContentSettingsStore::Observer { // Called when an extension is installed, so that prefs get created. void OnExtensionInstalled(const Extension* extension, - Extension::State initial_state); + Extension::State initial_state, + bool from_webstore); // Called when an extension is uninstalled, so that prefs get cleaned up. void OnExtensionUninstalled(const std::string& extension_id, @@ -322,6 +323,9 @@ class ExtensionPrefs : public ExtensionContentSettingsStore::Observer { // Clears incognito session-only content settings for all extensions. void ClearIncognitoSessionOnlyContentSettings(); + // Returns true if the extension was installed from the Chrome Web Store. + bool IsFromWebStore(const std::string& extension_id) const; + // Helper method to acquire the installation time of an extension. // Returns base::Time() if the installation time could not be parsed or // found. |