Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: chrome/common/extensions/permissions/chrome_api_permissions.cc

Issue 22584002: Move processes API to dev channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased again Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, 113 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT,
114 PermissionMessage::kManagement }, 114 PermissionMessage::kManagement },
115 { APIPermission::kNativeMessaging, "nativeMessaging", 115 { APIPermission::kNativeMessaging, "nativeMessaging",
116 APIPermissionInfo::kFlagNone, 116 APIPermissionInfo::kFlagNone,
117 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING, 117 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING,
118 PermissionMessage::kNativeMessaging }, 118 PermissionMessage::kNativeMessaging },
119 { APIPermission::kPower, "power", }, 119 { APIPermission::kPower, "power", },
120 { APIPermission::kPrivacy, "privacy", APIPermissionInfo::kFlagNone, 120 { APIPermission::kPrivacy, "privacy", APIPermissionInfo::kFlagNone,
121 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, 121 IDS_EXTENSION_PROMPT_WARNING_PRIVACY,
122 PermissionMessage::kPrivacy }, 122 PermissionMessage::kPrivacy },
123 { APIPermission::kProcesses, "processes", APIPermissionInfo::kFlagNone,
124 IDS_EXTENSION_PROMPT_WARNING_TABS,
125 PermissionMessage::kTabs },
123 { APIPermission::kSessionRestore, "sessionRestore" }, 126 { APIPermission::kSessionRestore, "sessionRestore" },
124 { APIPermission::kStorage, "storage" }, 127 { APIPermission::kStorage, "storage" },
125 { APIPermission::kSyncFileSystem, "syncFileSystem", 128 { APIPermission::kSyncFileSystem, "syncFileSystem",
126 APIPermissionInfo::kFlagNone, 129 APIPermissionInfo::kFlagNone,
127 IDS_EXTENSION_PROMPT_WARNING_SYNCFILESYSTEM, 130 IDS_EXTENSION_PROMPT_WARNING_SYNCFILESYSTEM,
128 PermissionMessage::kSyncFileSystem }, 131 PermissionMessage::kSyncFileSystem },
129 { APIPermission::kTab, "tabs", APIPermissionInfo::kFlagNone, 132 { APIPermission::kTab, "tabs", APIPermissionInfo::kFlagNone,
130 IDS_EXTENSION_PROMPT_WARNING_TABS, 133 IDS_EXTENSION_PROMPT_WARNING_TABS,
131 PermissionMessage::kTabs }, 134 PermissionMessage::kTabs },
132 { APIPermission::kTopSites, "topSites", APIPermissionInfo::kFlagNone, 135 { APIPermission::kTopSites, "topSites", APIPermissionInfo::kFlagNone,
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // Register aliases. 329 // Register aliases.
327 std::vector<PermissionsProvider::AliasInfo> aliases; 330 std::vector<PermissionsProvider::AliasInfo> aliases;
328 aliases.push_back(PermissionsProvider::AliasInfo( 331 aliases.push_back(PermissionsProvider::AliasInfo(
329 "unlimitedStorage", kOldUnlimitedStoragePermission)); 332 "unlimitedStorage", kOldUnlimitedStoragePermission));
330 aliases.push_back(PermissionsProvider::AliasInfo( 333 aliases.push_back(PermissionsProvider::AliasInfo(
331 "tabs", kWindowsPermission)); 334 "tabs", kWindowsPermission));
332 return aliases; 335 return aliases;
333 } 336 }
334 337
335 } // namespace extensions 338 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/api_permission.h ('k') | chrome/common/extensions_api_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698