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

Side by Side Diff: extensions/renderer/resources/context_menus_handlers.js

Issue 1417513003: [Extensions] Don't allow built-in extensions code to be overridden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Jochen's Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // Implementation of custom bindings for the contextMenus API. 5 // Implementation of custom bindings for the contextMenus API.
6 // This is used to implement the contextMenus API for extensions and for the 6 // This is used to implement the contextMenus API for extensions and for the
7 // <webview> tag (see chrome_web_view_experimental.js). 7 // <webview> tag (see chrome_web_view_experimental.js).
8 8
9 var contextMenuNatives = requireNative('context_menus'); 9 var contextMenuNatives = requireNative('context_menus');
10 var sendRequest = require('sendRequest').sendRequest; 10 var sendRequest = require('sendRequest').sendRequest;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 callbacks.removeAll = createCustomCallback(function(instanceId) { 131 callbacks.removeAll = createCustomCallback(function(instanceId) {
132 delete contextMenus.handlers[instanceId]; 132 delete contextMenus.handlers[instanceId];
133 }); 133 });
134 134
135 return { 135 return {
136 requestHandlers: requestHandlers, 136 requestHandlers: requestHandlers,
137 callbacks: callbacks 137 callbacks: callbacks
138 }; 138 };
139 } 139 }
140 140
141 exports.create = createContextMenusHandlers; 141 exports.$set('create', createContextMenusHandlers);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698