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/chrome_api_permissions.h" | 5 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" |
6 | 6 |
7 #include "chrome/common/extensions/permissions/api_permission.h" | 7 #include "chrome/common/extensions/permissions/api_permission.h" |
8 #include "chrome/common/extensions/permissions/api_permission_set.h" | 8 #include "chrome/common/extensions/permissions/api_permission_set.h" |
9 #include "chrome/common/extensions/permissions/bluetooth_permission.h" | 9 #include "chrome/common/extensions/permissions/bluetooth_permission.h" |
10 #include "chrome/common/extensions/permissions/media_galleries_permission.h" | 10 #include "chrome/common/extensions/permissions/media_galleries_permission.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, | 107 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, |
108 PermissionMessage::kManagement }, | 108 PermissionMessage::kManagement }, |
109 { APIPermission::kNativeMessaging, "nativeMessaging", | 109 { APIPermission::kNativeMessaging, "nativeMessaging", |
110 APIPermissionInfo::kFlagNone, | 110 APIPermissionInfo::kFlagNone, |
111 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING, | 111 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING, |
112 PermissionMessage::kNativeMessaging }, | 112 PermissionMessage::kNativeMessaging }, |
113 { APIPermission::kPower, "power", }, | 113 { APIPermission::kPower, "power", }, |
114 { APIPermission::kPrivacy, "privacy", APIPermissionInfo::kFlagNone, | 114 { APIPermission::kPrivacy, "privacy", APIPermissionInfo::kFlagNone, |
115 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, | 115 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, |
116 PermissionMessage::kPrivacy }, | 116 PermissionMessage::kPrivacy }, |
117 { APIPermission::kSessionRestore, "sessionRestore" }, | 117 { APIPermission::kSessions, "sessions" }, |
118 { APIPermission::kStorage, "storage" }, | 118 { APIPermission::kStorage, "storage" }, |
119 { APIPermission::kSyncFileSystem, "syncFileSystem", | 119 { APIPermission::kSyncFileSystem, "syncFileSystem", |
120 APIPermissionInfo::kFlagNone, | 120 APIPermissionInfo::kFlagNone, |
121 IDS_EXTENSION_PROMPT_WARNING_SYNCFILESYSTEM, | 121 IDS_EXTENSION_PROMPT_WARNING_SYNCFILESYSTEM, |
122 PermissionMessage::kSyncFileSystem }, | 122 PermissionMessage::kSyncFileSystem }, |
123 { APIPermission::kTab, "tabs", APIPermissionInfo::kFlagNone, | 123 { APIPermission::kTab, "tabs", APIPermissionInfo::kFlagNone, |
124 IDS_EXTENSION_PROMPT_WARNING_TABS, | 124 IDS_EXTENSION_PROMPT_WARNING_TABS, |
125 PermissionMessage::kTabs }, | 125 PermissionMessage::kTabs }, |
126 { APIPermission::kTopSites, "topSites", APIPermissionInfo::kFlagNone, | 126 { APIPermission::kTopSites, "topSites", APIPermissionInfo::kFlagNone, |
127 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, | 127 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // Register aliases. | 317 // Register aliases. |
318 std::vector<PermissionsInfo::AliasInfo> aliases; | 318 std::vector<PermissionsInfo::AliasInfo> aliases; |
319 aliases.push_back(PermissionsInfo::AliasInfo( | 319 aliases.push_back(PermissionsInfo::AliasInfo( |
320 "unlimitedStorage", kOldUnlimitedStoragePermission)); | 320 "unlimitedStorage", kOldUnlimitedStoragePermission)); |
321 aliases.push_back(PermissionsInfo::AliasInfo( | 321 aliases.push_back(PermissionsInfo::AliasInfo( |
322 "tabs", kWindowsPermission)); | 322 "tabs", kWindowsPermission)); |
323 return aliases; | 323 return aliases; |
324 } | 324 } |
325 | 325 |
326 } // namespace extensions | 326 } // namespace extensions |
OLD | NEW |