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

Side by Side Diff: extensions/common/permissions/permission_message.h

Issue 482953003: Add a separate warning message for topSites permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/permissions/permission_set_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 kMediaGalleriesAllGalleriesDelete, 81 kMediaGalleriesAllGalleriesDelete,
82 kScreenlockPrivate, 82 kScreenlockPrivate,
83 kOverrideBookmarksUI, 83 kOverrideBookmarksUI,
84 kAutomation, 84 kAutomation,
85 kAccessibilityFeaturesModify, 85 kAccessibilityFeaturesModify,
86 kAccessibilityFeaturesRead, 86 kAccessibilityFeaturesRead,
87 kBluetoothPrivate, 87 kBluetoothPrivate,
88 kIdentityEmail, 88 kIdentityEmail,
89 kExperienceSamplingPrivate, 89 kExperienceSamplingPrivate,
90 kCopresence, 90 kCopresence,
91 kTopSites,
91 kEnumBoundary, 92 kEnumBoundary,
92 }; 93 };
93 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, 94 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown,
94 kNone_not_greater_than_kUnknown); 95 kNone_not_greater_than_kUnknown);
95 96
96 // Creates the corresponding permission message. 97 // Creates the corresponding permission message.
97 PermissionMessage(ID id, const base::string16& message); 98 PermissionMessage(ID id, const base::string16& message);
98 PermissionMessage(ID id, 99 PermissionMessage(ID id,
99 const base::string16& message, 100 const base::string16& message,
100 const base::string16& details); 101 const base::string16& details);
(...skipping 25 matching lines...) Expand all
126 ID id_; 127 ID id_;
127 base::string16 message_; 128 base::string16 message_;
128 base::string16 details_; 129 base::string16 details_;
129 }; 130 };
130 131
131 typedef std::vector<PermissionMessage> PermissionMessages; 132 typedef std::vector<PermissionMessage> PermissionMessages;
132 133
133 } // namespace extensions 134 } // namespace extensions
134 135
135 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 136 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/permission_set_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698