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

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

Issue 9386001: Implement a module system for the extension bindings JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/renderer/resources/extensions/browser_action_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/browser_action_custom_bindings.js b/chrome/renderer/resources/extensions/browser_action_custom_bindings.js
index 47cb684b25b49a2209942761e272214616f0e8ea..feed1690a923841bb939f994cc0318be762b6bab 100644
--- a/chrome/renderer/resources/extensions/browser_action_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/browser_action_custom_bindings.js
@@ -4,9 +4,7 @@
// Custom bindings for the browserAction API.
-(function() {
-
-native function GetChromeHidden();
+var GetChromeHidden = natives.GetChromeHidden;
Aaron Boodman 2012/02/16 01:54:42 I'm still not crazy about the magical names. Did y
koz (OOO until 15th September) 2012/02/27 01:06:14 No - wrapping it in a function would definitely wo
Aaron Boodman 2012/02/28 02:42:59 OK, I see your point of view.
GetChromeHidden().registerCustomHook('browserAction', function(bindingsAPI) {
var apiFunctions = bindingsAPI.apiFunctions;
@@ -16,5 +14,3 @@ GetChromeHidden().registerCustomHook('browserAction', function(bindingsAPI) {
setIcon(details, this.name, this.definition.parameters, 'browser action');
});
});
-
-})();

Powered by Google App Engine
This is Rietveld 408576698