| 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" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // If |has_all_auto_detected| is false, then Chrome will prompt the user at | 71 // If |has_all_auto_detected| is false, then Chrome will prompt the user at |
| 72 // runtime when the extension call the getMediaGalleries API. | 72 // runtime when the extension call the getMediaGalleries API. |
| 73 if (!has_all_auto_detected || !has_read) | 73 if (!has_all_auto_detected || !has_read) |
| 74 return result; | 74 return result; |
| 75 | 75 |
| 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, |
| 82 l10n_util::GetStringUTF16(message_id), |
| 83 string16())); |
| 82 return result; | 84 return result; |
| 83 } | 85 } |
| 84 | 86 |
| 85 } // namespace extensions | 87 } // namespace extensions |
| OLD | NEW |