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/pending_extension_info.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/pending_extension_info.h')
-rw-r--r-- | chrome/browser/extensions/pending_extension_info.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/extensions/pending_extension_info.h b/chrome/browser/extensions/pending_extension_info.h index a3ea47b1..11c159a 100644 --- a/chrome/browser/extensions/pending_extension_info.h +++ b/chrome/browser/extensions/pending_extension_info.h @@ -36,7 +36,8 @@ class PendingExtensionInfo { bool install_silently, Manifest::Location install_source, int creation_flags, - bool mark_acknowledged); + bool mark_acknowledged, + bool remote_install); // Required for STL container membership. Should not be used directly. PendingExtensionInfo(); @@ -65,6 +66,7 @@ class PendingExtensionInfo { Manifest::Location install_source() const { return install_source_; } int creation_flags() const { return creation_flags_; } bool mark_acknowledged() const { return mark_acknowledged_; } + bool remote_install() const { return remote_install_; } // Returns -1, 0 or 1 if |this| has lower, equal or higher precedence than // |other|, respectively. "Equal" precedence means that the version and the @@ -90,6 +92,7 @@ class PendingExtensionInfo { Manifest::Location install_source_; int creation_flags_; bool mark_acknowledged_; + bool remote_install_; FRIEND_TEST_ALL_PREFIXES(::ExtensionServiceTest, AddPendingExtensionFromSync); }; |