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

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

Issue 1143303004: Add IDL and stub implementation for chrome.usersPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make isOwner a required field Created 5 years, 6 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 "chrome/grit/generated_resources.h" 9 #include "chrome/grit/generated_resources.h"
10 #include "extensions/common/permissions/api_permission_set.h" 10 #include "extensions/common/permissions/api_permission_set.h"
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 {}}, 500 {}},
501 {IDS_EXTENSION_PROMPT_WARNING_SETTINGS_PRIVATE, 501 {IDS_EXTENSION_PROMPT_WARNING_SETTINGS_PRIVATE,
502 {APIPermission::kSettingsPrivate}, 502 {APIPermission::kSettingsPrivate},
503 {}}, 503 {}},
504 {IDS_EXTENSION_PROMPT_WARNING_AUTOFILL_PRIVATE, 504 {IDS_EXTENSION_PROMPT_WARNING_AUTOFILL_PRIVATE,
505 {APIPermission::kAutofillPrivate}, 505 {APIPermission::kAutofillPrivate},
506 {}}, 506 {}},
507 {IDS_EXTENSION_PROMPT_WARNING_PASSWORDS_PRIVATE, 507 {IDS_EXTENSION_PROMPT_WARNING_PASSWORDS_PRIVATE,
508 {APIPermission::kPasswordsPrivate}, 508 {APIPermission::kPasswordsPrivate},
509 {}}, 509 {}},
510 {IDS_EXTENSION_PROMPT_WARNING_USERS_PRIVATE,
511 {APIPermission::kUsersPrivate},
512 {}},
510 513
511 // Platform-app permission messages. 514 // Platform-app permission messages.
512 515
513 // The permission string for "fileSystem" is only shown when 516 // The permission string for "fileSystem" is only shown when
514 // "write" or "directory" is present. Read-only access is only 517 // "write" or "directory" is present. Read-only access is only
515 // granted after the user has been shown a file or directory 518 // granted after the user has been shown a file or directory
516 // chooser dialog and selected a file or directory. Selecting 519 // chooser dialog and selected a file or directory. Selecting
517 // the file or directory is considered consent to read it. 520 // the file or directory is considered consent to read it.
518 {IDS_EXTENSION_PROMPT_WARNING_FILE_SYSTEM_DIRECTORY, 521 {IDS_EXTENSION_PROMPT_WARNING_FILE_SYSTEM_DIRECTORY,
519 {APIPermission::kFileSystemDirectory}, 522 {APIPermission::kFileSystemDirectory},
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 insert(permission_four); 678 insert(permission_four);
676 insert(permission_five); 679 insert(permission_five);
677 insert(permission_six); 680 insert(permission_six);
678 } 681 }
679 682
680 ChromePermissionMessageRule::PermissionIDSetInitializer:: 683 ChromePermissionMessageRule::PermissionIDSetInitializer::
681 ~PermissionIDSetInitializer() { 684 ~PermissionIDSetInitializer() {
682 } 685 }
683 686
684 } // namespace extensions 687 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698