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

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

Issue 510893003: Remove ledger code from Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "extensions/common/permissions/api_permission.h" 8 #include "extensions/common/permissions/api_permission.h"
9 #include "extensions/common/permissions/api_permission_set.h" 9 #include "extensions/common/permissions/api_permission_set.h"
10 #include "extensions/common/permissions/media_galleries_permission.h" 10 #include "extensions/common/permissions/media_galleries_permission.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 {APIPermission::kFontSettings, "fontSettings", 118 {APIPermission::kFontSettings, "fontSettings",
119 APIPermissionInfo::kFlagCannotBeOptional}, 119 APIPermissionInfo::kFlagCannotBeOptional},
120 {APIPermission::kHistory, "history", APIPermissionInfo::kFlagNone, 120 {APIPermission::kHistory, "history", APIPermissionInfo::kFlagNone,
121 IDS_EXTENSION_PROMPT_WARNING_HISTORY_WRITE, 121 IDS_EXTENSION_PROMPT_WARNING_HISTORY_WRITE,
122 PermissionMessage::kBrowsingHistory}, 122 PermissionMessage::kBrowsingHistory},
123 {APIPermission::kIdltest, "idltest"}, 123 {APIPermission::kIdltest, "idltest"},
124 {APIPermission::kIdle, "idle"}, 124 {APIPermission::kIdle, "idle"},
125 {APIPermission::kInfobars, "infobars"}, 125 {APIPermission::kInfobars, "infobars"},
126 {APIPermission::kInput, "input", APIPermissionInfo::kFlagNone, 126 {APIPermission::kInput, "input", APIPermissionInfo::kFlagNone,
127 IDS_EXTENSION_PROMPT_WARNING_INPUT, PermissionMessage::kInput}, 127 IDS_EXTENSION_PROMPT_WARNING_INPUT, PermissionMessage::kInput},
128 {APIPermission::kLedger, "ledger"},
129 {APIPermission::kLocation, "location", 128 {APIPermission::kLocation, "location",
130 APIPermissionInfo::kFlagCannotBeOptional, 129 APIPermissionInfo::kFlagCannotBeOptional,
131 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, 130 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION,
132 PermissionMessage::kGeolocation}, 131 PermissionMessage::kGeolocation},
133 {APIPermission::kManagement, "management", APIPermissionInfo::kFlagNone, 132 {APIPermission::kManagement, "management", APIPermissionInfo::kFlagNone,
134 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, PermissionMessage::kManagement}, 133 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, PermissionMessage::kManagement},
135 {APIPermission::kNativeMessaging, "nativeMessaging", 134 {APIPermission::kNativeMessaging, "nativeMessaging",
136 APIPermissionInfo::kFlagNone, 135 APIPermissionInfo::kFlagNone,
137 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING, 136 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING,
138 PermissionMessage::kNativeMessaging}, 137 PermissionMessage::kNativeMessaging},
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc", 376 PermissionsProvider::AliasInfo("app.window.fullscreen.overrideEsc",
378 kOldOverrideEscFullscreenPermission)); 377 kOldOverrideEscFullscreenPermission));
379 aliases.push_back(PermissionsProvider::AliasInfo( 378 aliases.push_back(PermissionsProvider::AliasInfo(
380 "unlimitedStorage", kOldUnlimitedStoragePermission)); 379 "unlimitedStorage", kOldUnlimitedStoragePermission));
381 aliases.push_back(PermissionsProvider::AliasInfo( 380 aliases.push_back(PermissionsProvider::AliasInfo(
382 "tabs", kWindowsPermission)); 381 "tabs", kWindowsPermission));
383 return aliases; 382 return aliases;
384 } 383 }
385 384
386 } // namespace extensions 385 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | chrome/common/extensions/permissions/permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698