 Chromium Code Reviews
 Chromium Code Reviews Issue 980353003:
  Extensions: Switch to new permission message system, part I  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 980353003:
  Extensions: Switch to new permission message system, part I  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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..03d727022c7aa5ffda1b1cc21e69ffd4a2ce5af6 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 permissons warning for the extension | 
| 
Yoyo Zhou
2015/03/11 01:33:23
nit: permissions
 
Marc Treib
2015/03/11 13:08:52
Done.
 | 
| // 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. | 
| + // TODO(treib): Remove this once we've fully switched to the new system. | 
| + PermissionMessages GetLegacyPermissionMessages() const; | 
| 
Yoyo Zhou
2015/03/11 01:33:23
Here's my thinking about flags. Ideally, we have s
 
Marc Treib
2015/03/11 13:08:52
Alright. I'll do that and ping you again.
 | 
| // 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. |