Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3534)

Unified Diff: chrome/common/extensions/sync_helper.cc

Issue 314113010: Remove deprecated permissions functions from Extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/sync_helper.cc
diff --git a/chrome/common/extensions/sync_helper.cc b/chrome/common/extensions/sync_helper.cc
index 93d8ce4c48b603821d283bfd1f01f1b21d946df5..c38fdbc7ba97bed4bb19d7dc1fac06672d0087c3 100644
--- a/chrome/common/extensions/sync_helper.cc
+++ b/chrome/common/extensions/sync_helper.cc
@@ -10,6 +10,7 @@
#include "chrome/common/extensions/manifest_url_handler.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest.h"
+#include "extensions/common/permissions/permissions_data.h"
namespace extensions {
namespace sync_helper {
@@ -42,7 +43,7 @@ SyncType GetSyncType(const Extension* extension) {
// TODO(akalin): Relax this restriction once we've put in UI to
// approve synced extensions.
if (PluginInfo::HasPlugins(extension) ||
- extension->HasAPIPermission(APIPermission::kPlugin)) {
+ extension->permissions_data()->HasAPIPermission(APIPermission::kPlugin)) {
return SYNC_TYPE_NONE;
}

Powered by Google App Engine
This is Rietveld 408576698