| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/common/permissions/media_galleries_permission.h" | 5 #include "extensions/common/permissions/media_galleries_permission.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <set> | 9 #include <set> |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 12 #include "extensions/common/permissions/permissions_info.h" | 14 #include "extensions/common/permissions/permissions_info.h" |
| 13 #include "grit/extensions_strings.h" | 15 #include "grit/extensions_strings.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 15 | 17 |
| 16 namespace extensions { | 18 namespace extensions { |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 return IsValidPermissionSet(has_read, has_copy_to, has_delete, error); | 164 return IsValidPermissionSet(has_read, has_copy_to, has_delete, error); |
| 163 } | 165 } |
| 164 | 166 |
| 165 PermissionIDSet MediaGalleriesPermission::GetPermissions() const { | 167 PermissionIDSet MediaGalleriesPermission::GetPermissions() const { |
| 166 PermissionIDSet result; | 168 PermissionIDSet result; |
| 167 AddPermissionsToLists(data_set_, &result); | 169 AddPermissionsToLists(data_set_, &result); |
| 168 return result; | 170 return result; |
| 169 } | 171 } |
| 170 | 172 |
| 171 } // namespace extensions | 173 } // namespace extensions |
| OLD | NEW |