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

Unified Diff: extensions/common/permissions/permissions_data.h

Issue 980353003: Extensions: Switch to new permission message system, part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review (the easy parts) Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: extensions/common/permissions/permissions_data.h
diff --git a/extensions/common/permissions/permissions_data.h b/extensions/common/permissions/permissions_data.h
index 9a24fbf05d28d6288902bf7d2eb0dd686d5962a4..88d716cdaaff71e1b0ca10d69b64357633825281 100644
--- a/extensions/common/permissions/permissions_data.h
+++ b/extensions/common/permissions/permissions_data.h
@@ -71,7 +71,7 @@ class PermissionsData {
const Extension* extension,
const PermissionSet* permissions);
- // Returns true if we should skip the permisisons warning for the extension
+ // Returns true if we should skip the permissions warning for the extension
// with the given |extension_id|.
static bool ShouldSkipPermissionWarnings(const std::string& extension_id);
@@ -133,18 +133,21 @@ class PermissionsData {
// Returns the full list of permission messages that should display at
// install time.
- // TODO(sashab): Deprecate this in favor of GetCoalescedPermissionMessages().
- PermissionMessages GetPermissionMessages() const;
+ // Deprecated; use GetCoalescedPermissionMessages() instead.
Yoyo Zhou 2015/03/17 00:02:05 Why was this removed? I think it helps to say what
Marc Treib 2015/03/17 10:00:27 Ah, the CL's confusing here, sorry about that. The
+ // TODO(treib): Remove this once we've fully switched to the new system.
+ PermissionMessages GetLegacyPermissionMessages() const;
// Returns the full list of permission messages that should display at install
// time as strings.
- // TODO(sashab): Deprecate this in favor of GetCoalescedPermissionMessages().
- std::vector<base::string16> GetPermissionMessageStrings() const;
+ // Deprecated; use GetCoalescedPermissionMessages() instead.
+ // TODO(treib): Remove this once we've fully switched to the new system.
+ std::vector<base::string16> GetLegacyPermissionMessageStrings() const;
// Returns the full list of permission details for messages that should
// display at install time as strings.
- // TODO(sashab): Deprecate this in favor of GetCoalescedPermissionMessages().
- std::vector<base::string16> GetPermissionMessageDetailsStrings() const;
+ // Deprecated; use GetCoalescedPermissionMessages() instead.
+ // TODO(treib): Remove this once we've fully switched to the new system.
+ std::vector<base::string16> GetLegacyPermissionMessageDetailsStrings() const;
// Returns the full list of permission details for messages that should
// display at install time, in a nested format ready for display.
« no previous file with comments | « extensions/common/permissions/permission_message_test_util.cc ('k') | extensions/common/permissions/permissions_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698