| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/api_permission.h" | 5 #include "chrome/common/extensions/permissions/api_permission.h" |
| 6 | 6 |
| 7 #include "chrome/common/extensions/permissions/permissions_info.h" | 7 #include "chrome/common/extensions/permissions/permissions_info.h" |
| 8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
| 9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // Register hosted and packaged app permissions. | 73 // Register hosted and packaged app permissions. |
| 74 { kAppNotifications, "appNotifications" }, | 74 { kAppNotifications, "appNotifications" }, |
| 75 | 75 |
| 76 // Register extension permissions. | 76 // Register extension permissions. |
| 77 { kActiveTab, "activeTab" }, | 77 { kActiveTab, "activeTab" }, |
| 78 { kAlarms, "alarms" }, | 78 { kAlarms, "alarms" }, |
| 79 { kBookmark, "bookmarks", kFlagNone, | 79 { kBookmark, "bookmarks", kFlagNone, |
| 80 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, | 80 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, |
| 81 PermissionMessage::kBookmarks }, | 81 PermissionMessage::kBookmarks }, |
| 82 { kBrowserTag, "browserTag", kFlagCannotBeOptional }, |
| 82 { kBrowsingData, "browsingData" }, | 83 { kBrowsingData, "browsingData" }, |
| 83 { kContentSettings, "contentSettings", kFlagNone, | 84 { kContentSettings, "contentSettings", kFlagNone, |
| 84 IDS_EXTENSION_PROMPT_WARNING_CONTENT_SETTINGS, | 85 IDS_EXTENSION_PROMPT_WARNING_CONTENT_SETTINGS, |
| 85 PermissionMessage::kContentSettings }, | 86 PermissionMessage::kContentSettings }, |
| 86 { kContextMenus, "contextMenus" }, | 87 { kContextMenus, "contextMenus" }, |
| 87 { kCookie, "cookies" }, | 88 { kCookie, "cookies" }, |
| 88 { kFileBrowserHandler, "fileBrowserHandler", kFlagCannotBeOptional }, | 89 { kFileBrowserHandler, "fileBrowserHandler", kFlagCannotBeOptional }, |
| 89 { kHistory, "history", kFlagNone, | 90 { kHistory, "history", kFlagNone, |
| 90 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, | 91 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, |
| 91 PermissionMessage::kBrowsingHistory }, | 92 PermissionMessage::kBrowsingHistory }, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 178 |
| 178 // Register aliases. | 179 // Register aliases. |
| 179 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 180 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
| 180 info->RegisterAlias("tabs", kWindowsPermission); | 181 info->RegisterAlias("tabs", kWindowsPermission); |
| 181 // TODO(mihaip): Should be removed for the M20 branch, see | 182 // TODO(mihaip): Should be removed for the M20 branch, see |
| 182 // http://crbug.com/120447 for more details. | 183 // http://crbug.com/120447 for more details. |
| 183 info->RegisterAlias("background", kTemporaryBackgroundAlias); | 184 info->RegisterAlias("background", kTemporaryBackgroundAlias); |
| 184 } | 185 } |
| 185 | 186 |
| 186 } // namespace extensions | 187 } // namespace extensions |
| OLD | NEW |