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

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

Issue 2470193002: Introduce networking.onc as an alias for networkingPrivate (Closed)
Patch Set: . Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_permission_message_rules.h " 5 #include "chrome/common/extensions/permissions/chrome_permission_message_rules.h "
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 {}}, 513 {}},
514 {IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE, 514 {IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE,
515 {APIPermission::kAudioCapture}, 515 {APIPermission::kAudioCapture},
516 {}}, 516 {}},
517 {IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE, 517 {IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE,
518 {APIPermission::kVideoCapture}, 518 {APIPermission::kVideoCapture},
519 {}}, 519 {}},
520 520
521 // Network-related permissions. 521 // Network-related permissions.
522 {IDS_EXTENSION_PROMPT_WARNING_NETWORKING_PRIVATE, 522 {IDS_EXTENSION_PROMPT_WARNING_NETWORKING_PRIVATE,
523 {APIPermission::kNetworkConfig},
524 {APIPermission::kNetworkingPrivate}},
525 {IDS_EXTENSION_PROMPT_WARNING_NETWORKING_PRIVATE,
523 {APIPermission::kNetworkingPrivate}, 526 {APIPermission::kNetworkingPrivate},
524 {}}, 527 {}},
stevenjb 2016/12/07 21:35:31 I'm not familiar with how these rules work, but it
tbarzic 2016/12/07 22:32:53 Done.
525 {IDS_EXTENSION_PROMPT_WARNING_NETWORKING_CONFIG, 528 {IDS_EXTENSION_PROMPT_WARNING_NETWORKING_CONFIG,
526 {APIPermission::kNetworkingConfig}, 529 {APIPermission::kNetworkingConfig},
527 {}}, 530 {}},
528 {IDS_EXTENSION_PROMPT_WARNING_NETWORK_STATE, 531 {IDS_EXTENSION_PROMPT_WARNING_NETWORK_STATE,
529 {APIPermission::kNetworkState}, 532 {APIPermission::kNetworkState},
530 {}}, 533 {}},
531 {IDS_EXTENSION_PROMPT_WARNING_VPN, {APIPermission::kVpnProvider}, {}}, 534 {IDS_EXTENSION_PROMPT_WARNING_VPN, {APIPermission::kVpnProvider}, {}},
532 {IDS_EXTENSION_PROMPT_WARNING_WEB_CONNECTABLE, 535 {IDS_EXTENSION_PROMPT_WARNING_WEB_CONNECTABLE,
533 {APIPermission::kWebConnectable}, 536 {APIPermission::kWebConnectable},
534 {}}, 537 {}},
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 {IDS_EXTENSION_PROMPT_WARNING_DISPLAY_SOURCE, 627 {IDS_EXTENSION_PROMPT_WARNING_DISPLAY_SOURCE,
625 {APIPermission::kDisplaySource}, 628 {APIPermission::kDisplaySource},
626 {}}, 629 {}},
627 }; 630 };
628 631
629 return std::vector<ChromePermissionMessageRule>( 632 return std::vector<ChromePermissionMessageRule>(
630 rules_arr, rules_arr + arraysize(rules_arr)); 633 rules_arr, rules_arr + arraysize(rules_arr));
631 } 634 }
632 635
633 } // namespace extensions 636 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | extensions/common/api/_api_features.json » ('j') | extensions/common/api/_behavior_features.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698