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

Unified Diff: chrome/renderer/resources/extensions/app_custom_bindings.js

Issue 1840453002: [Extensions] More bindings hardening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/automation/automation_node.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/app_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/app_custom_bindings.js b/chrome/renderer/resources/extensions/app_custom_bindings.js
index 79fcfd84f1fe83f2a9a679a600eb72cb1356c6b6..b91705fb95c5219a3a17f3be4908b8af8651b66c 100644
--- a/chrome/renderer/resources/extensions/app_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/app_custom_bindings.js
@@ -6,8 +6,8 @@
var GetAvailability = requireNative('v8_context').GetAvailability;
if (!GetAvailability('app').is_available) {
- exports.binding = {};
- exports.onInstallStateResponse = function(){};
+ exports.$set('binding', {});
+ exports.$set('onInstallStateResponse', function(){});
return;
}
@@ -70,5 +70,5 @@ app.installState = function getInstallState(callback) {
if (extensionId)
app.installState = wrapForLogging(app.installState);
-exports.binding = app;
-exports.onInstallStateResponse = onInstallStateResponse;
+exports.$set('binding', app);
+exports.$set('onInstallStateResponse', onInstallStateResponse);
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/automation/automation_node.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698