summaryrefslogtreecommitdiffstats
path: root/extensions/common
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/common')
-rw-r--r--extensions/common/permissions/media_galleries_permission.cc4
-rw-r--r--extensions/common/permissions/media_galleries_permission_data.cc1
2 files changed, 1 insertions, 4 deletions
diff --git a/extensions/common/permissions/media_galleries_permission.cc b/extensions/common/permissions/media_galleries_permission.cc
index 6a43268..4ac5ae6 100644
--- a/extensions/common/permissions/media_galleries_permission.cc
+++ b/extensions/common/permissions/media_galleries_permission.cc
@@ -96,7 +96,6 @@ void AddPermissionsToLists(
const char MediaGalleriesPermission::kAllAutoDetectedPermission[] =
"allAutoDetected";
-const char MediaGalleriesPermission::kScanPermission[] = "scan";
const char MediaGalleriesPermission::kReadPermission[] = "read";
const char MediaGalleriesPermission::kCopyToPermission[] = "copyTo";
const char MediaGalleriesPermission::kDeletePermission[] = "delete";
@@ -137,8 +136,7 @@ bool MediaGalleriesPermission::FromValue(
bool has_delete = false;
for (std::set<MediaGalleriesPermissionData>::const_iterator it =
data_set_.begin(); it != data_set_.end(); ++it) {
- if (it->permission() == kAllAutoDetectedPermission ||
- it->permission() == kScanPermission) {
+ if (it->permission() == kAllAutoDetectedPermission) {
continue;
}
if (it->permission() == kReadPermission) {
diff --git a/extensions/common/permissions/media_galleries_permission_data.cc b/extensions/common/permissions/media_galleries_permission_data.cc
index d7e7937..495c1f9 100644
--- a/extensions/common/permissions/media_galleries_permission_data.cc
+++ b/extensions/common/permissions/media_galleries_permission_data.cc
@@ -39,7 +39,6 @@ bool MediaGalleriesPermissionData::FromValue(const base::Value* value) {
base::TrimWhitespaceASCII(raw_permission, base::TRIM_ALL, &permission);
if (permission == MediaGalleriesPermission::kAllAutoDetectedPermission ||
- permission == MediaGalleriesPermission::kScanPermission ||
permission == MediaGalleriesPermission::kReadPermission ||
permission == MediaGalleriesPermission::kCopyToPermission ||
permission == MediaGalleriesPermission::kDeletePermission) {