diff options
author | mek@chromium.org <mek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-16 02:06:27 +0000 |
---|---|---|
committer | mek@chromium.org <mek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-16 02:06:27 +0000 |
commit | 21db9ef70f4e530848aa6138080e9890d5fd6ae1 (patch) | |
tree | 41628f70e7cb36d4da4f7a618864ed9c322786e2 /chrome/browser/extensions/extension_sync_data.h | |
parent | 795989f209fce2d73dd8dfda49bb13ba0c68f8d7 (diff) | |
download | chromium_src-21db9ef70f4e530848aa6138080e9890d5fd6ae1.zip chromium_src-21db9ef70f4e530848aa6138080e9890d5fd6ae1.tar.gz chromium_src-21db9ef70f4e530848aa6138080e9890d5fd6ae1.tar.bz2 |
Support remote installation of extensions and apps.
To enable this support, the following things are changed:
* ExtensionSyncData, and the ExtensionSpecifics protobuf have a new
remote_install field, to mark a remotely installed extension.
* A new DISABLE_REMOTE_INSTALL reason is added to track this state
locally.
* CrxInstaller::allow_silent_install is changed from a bool to a
three-state enum, where the options are:
- install after showing a permission prompt,
- install and grant all permissions without a prompt and
- install without a prompt and don't grant any permissions
* AddExtensionDisabledError is modified to keep track of the disable
reasons, and change the text that is displayed accordingly.
* ExtensionInstallPrompt has a new prompt type with different text
for remotely installed extensions.
BUG=365737
Review URL: https://codereview.chromium.org/264763002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270900 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_sync_data.h')
-rw-r--r-- | chrome/browser/extensions/extension_sync_data.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_sync_data.h b/chrome/browser/extensions/extension_sync_data.h index 04c4b18..9165e75 100644 --- a/chrome/browser/extensions/extension_sync_data.h +++ b/chrome/browser/extensions/extension_sync_data.h @@ -31,7 +31,8 @@ class ExtensionSyncData { explicit ExtensionSyncData(const syncer::SyncChange& sync_change); ExtensionSyncData(const Extension& extension, bool enabled, - bool incognito_enabled); + bool incognito_enabled, + bool remote_install); ~ExtensionSyncData(); // Retrieve sync data from this class. @@ -56,6 +57,7 @@ class ExtensionSyncData { bool uninstalled() const { return uninstalled_; } bool enabled() const { return enabled_; } bool incognito_enabled() const { return incognito_enabled_; } + bool remote_install() const { return remote_install_; } // Version-dependent properties (i.e., should be used only when the // version of the currenty-installed extension matches |version|). |