OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/common/extensions/permissions/media_galleries_permission.h" | 5 #include "chrome/common/extensions/permissions/media_galleries_permission.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/common/extensions/permissions/permissions_info.h" | 13 #include "chrome/common/extensions/permissions/permissions_info.h" |
14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 | 18 |
19 const char MediaGalleriesPermission::kAllAutoDetectedPermission[] = | 19 const char MediaGalleriesPermission::kAllAutoDetectedPermission[] = |
20 "allAutoDetected"; | 20 "allAutoDetected"; |
21 const char MediaGalleriesPermission::kReadPermission[] = "read"; | 21 const char MediaGalleriesPermission::kReadPermission[] = "read"; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 PermissionMessage::ID permission_id = | 76 PermissionMessage::ID permission_id = |
77 PermissionMessage::kMediaGalleriesAllGalleriesRead; | 77 PermissionMessage::kMediaGalleriesAllGalleriesRead; |
78 int message_id = | 78 int message_id = |
79 IDS_EXTENSION_PROMPT_WARNING_MEDIA_GALLERIES_READ_ALL_GALLERIES; | 79 IDS_EXTENSION_PROMPT_WARNING_MEDIA_GALLERIES_READ_ALL_GALLERIES; |
80 result.push_back( | 80 result.push_back( |
81 PermissionMessage(permission_id, l10n_util::GetStringUTF16(message_id))); | 81 PermissionMessage(permission_id, l10n_util::GetStringUTF16(message_id))); |
82 return result; | 82 return result; |
83 } | 83 } |
84 | 84 |
85 } // namespace extensions | 85 } // namespace extensions |
OLD | NEW |