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

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

Issue 1232553003: Add new certificateProvider extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 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 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/stl_util.h" 7 #include "base/stl_util.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 {IDS_EXTENSION_PROMPT_WARNING_SYNCFILESYSTEM, 603 {IDS_EXTENSION_PROMPT_WARNING_SYNCFILESYSTEM,
604 {APIPermission::kSyncFileSystem}, 604 {APIPermission::kSyncFileSystem},
605 {}}, 605 {}},
606 {IDS_EXTENSION_PROMPT_WARNING_TTS_ENGINE, 606 {IDS_EXTENSION_PROMPT_WARNING_TTS_ENGINE,
607 {APIPermission::kTtsEngine}, 607 {APIPermission::kTtsEngine},
608 {}}, 608 {}},
609 {IDS_EXTENSION_PROMPT_WARNING_WALLPAPER, {APIPermission::kWallpaper}, {}}, 609 {IDS_EXTENSION_PROMPT_WARNING_WALLPAPER, {APIPermission::kWallpaper}, {}},
610 {IDS_EXTENSION_PROMPT_WARNING_PLATFORMKEYS, 610 {IDS_EXTENSION_PROMPT_WARNING_PLATFORMKEYS,
611 {APIPermission::kPlatformKeys}, 611 {APIPermission::kPlatformKeys},
612 {}}, 612 {}},
613 {IDS_EXTENSION_PROMPT_WARNING_CERTIFICATEPROVIDER,
614 {APIPermission::kCertificateProvider},
615 {}},
613 616
614 {IDS_EXTENSION_PROMPT_WARNING_SCREENLOCK_PRIVATE, 617 {IDS_EXTENSION_PROMPT_WARNING_SCREENLOCK_PRIVATE,
615 {APIPermission::kScreenlockPrivate}, 618 {APIPermission::kScreenlockPrivate},
616 {}}, 619 {}},
617 {IDS_EXTENSION_PROMPT_WARNING_ACTIVITY_LOG_PRIVATE, 620 {IDS_EXTENSION_PROMPT_WARNING_ACTIVITY_LOG_PRIVATE,
618 {APIPermission::kActivityLogPrivate}, 621 {APIPermission::kActivityLogPrivate},
619 {}}, 622 {}},
620 {IDS_EXTENSION_PROMPT_WARNING_EXPERIENCE_SAMPLING_PRIVATE, 623 {IDS_EXTENSION_PROMPT_WARNING_EXPERIENCE_SAMPLING_PRIVATE,
621 {APIPermission::kExperienceSamplingPrivate}, 624 {APIPermission::kExperienceSamplingPrivate},
622 {}}, 625 {}},
(...skipping 15 matching lines...) Expand all
638 {IDS_EXTENSION_PROMPT_WARNING_USERS_PRIVATE, 641 {IDS_EXTENSION_PROMPT_WARNING_USERS_PRIVATE,
639 {APIPermission::kUsersPrivate}, 642 {APIPermission::kUsersPrivate},
640 {}}, 643 {}},
641 }; 644 };
642 645
643 return std::vector<ChromePermissionMessageRule>( 646 return std::vector<ChromePermissionMessageRule>(
644 rules_arr, rules_arr + arraysize(rules_arr)); 647 rules_arr, rules_arr + arraysize(rules_arr));
645 } 648 }
646 649
647 } // namespace extensions 650 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698