summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/sync_helper.cc
diff options
context:
space:
mode:
authormeacer@chromium.org <meacer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-21 15:33:36 +0000
committermeacer@chromium.org <meacer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-21 15:33:36 +0000
commit8c95ab0b50f8a257514f9647929267e62b1e611d (patch)
tree06279f27c9a85e1eb0437a607a9c0b1a28051228 /chrome/common/extensions/sync_helper.cc
parent9035d08636e9f47629d495c549a1ed40c6a36154 (diff)
downloadchromium_src-8c95ab0b50f8a257514f9647929267e62b1e611d.zip
chromium_src-8c95ab0b50f8a257514f9647929267e62b1e611d.tar.gz
chromium_src-8c95ab0b50f8a257514f9647929267e62b1e611d.tar.bz2
Fix syncing of NPAPI plugins.
This fix adds a check for |plugin| permission while syncing NPAPI plugins. BUG=252034 Review URL: https://chromiumcodereview.appspot.com/16816024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/sync_helper.cc')
-rw-r--r--chrome/common/extensions/sync_helper.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/common/extensions/sync_helper.cc b/chrome/common/extensions/sync_helper.cc
index 3cffcca..c839adc 100644
--- a/chrome/common/extensions/sync_helper.cc
+++ b/chrome/common/extensions/sync_helper.cc
@@ -41,8 +41,10 @@ SyncType GetSyncType(const Extension* extension) {
//
// TODO(akalin): Relax this restriction once we've put in UI to
// approve synced extensions.
- if (PluginInfo::HasPlugins(extension))
+ if (PluginInfo::HasPlugins(extension) ||
+ extension->HasAPIPermission(APIPermission::kPlugin)) {
return SYNC_TYPE_NONE;
+ }
switch (extension->GetType()) {
case Manifest::TYPE_EXTENSION: