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

Unified Diff: chrome/common/extensions/permissions/permissions_info.cc

Issue 10692160: Support socket endpoint permissions for AppsV2 Socket API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase and fix a unit test Created 8 years, 4 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: chrome/common/extensions/permissions/permissions_info.cc
diff --git a/chrome/common/extensions/permissions/permissions_info.cc b/chrome/common/extensions/permissions/permissions_info.cc
index 9cb85499832f510ca006d89f07ea889b85c4f87e..9238ea4d7fe1e0668461e3ea67b1955f40aad049 100644
--- a/chrome/common/extensions/permissions/permissions_info.cc
+++ b/chrome/common/extensions/permissions/permissions_info.cc
@@ -68,12 +68,13 @@ APIPermission* PermissionsInfo::RegisterPermission(
const char* name,
int l10n_message_id,
PermissionMessage::ID message_id,
- int flags) {
+ int flags,
+ const APIPermission::DetailConstructor detail_constructor) {
DCHECK(id_map_.find(id) == id_map_.end());
DCHECK(name_map_.find(name) == name_map_.end());
APIPermission* permission = new APIPermission(
- id, name, l10n_message_id, message_id, flags);
+ id, name, l10n_message_id, message_id, flags, detail_constructor);
id_map_[id] = permission;
name_map_[name] = permission;
« no previous file with comments | « chrome/common/extensions/permissions/permissions_info.h ('k') | chrome/common/extensions/permissions/socket_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698