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

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

Issue 137533013: Generalize "hide bookmark star" permission to "override bookmarks UI" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 kFileSystemDirectory, 72 kFileSystemDirectory,
73 kFileSystemWriteDirectory, 73 kFileSystemWriteDirectory,
74 kSignedInDevices, 74 kSignedInDevices,
75 kWallpaper, 75 kWallpaper,
76 kNetworkState, 76 kNetworkState,
77 kHomepage, 77 kHomepage,
78 kSearchProvider, 78 kSearchProvider,
79 kStartupPages, 79 kStartupPages,
80 kMediaGalleriesAllGalleriesDelete, 80 kMediaGalleriesAllGalleriesDelete,
81 kScreenlockPrivate, 81 kScreenlockPrivate,
82 kHideBookmarkButton, 82 kOverrideBookmarksUI,
83 kEnumBoundary, 83 kEnumBoundary,
84 }; 84 };
85 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, 85 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown,
86 kNone_not_greater_than_kUnknown); 86 kNone_not_greater_than_kUnknown);
87 87
88 // Creates the corresponding permission message. 88 // Creates the corresponding permission message.
89 PermissionMessage(ID id, const base::string16& message); 89 PermissionMessage(ID id, const base::string16& message);
90 PermissionMessage(ID id, 90 PermissionMessage(ID id,
91 const base::string16& message, 91 const base::string16& message,
92 const base::string16& details); 92 const base::string16& details);
(...skipping 25 matching lines...) Expand all
118 ID id_; 118 ID id_;
119 base::string16 message_; 119 base::string16 message_;
120 base::string16 details_; 120 base::string16 details_;
121 }; 121 };
122 122
123 typedef std::vector<PermissionMessage> PermissionMessages; 123 typedef std::vector<PermissionMessage> PermissionMessages;
124 124
125 } // namespace extensions 125 } // namespace extensions
126 126
127 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 127 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698