Index: chrome/renderer/resources/extensions/page_action_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/page_action_custom_bindings.js b/chrome/renderer/resources/extensions/page_action_custom_bindings.js |
index 722a57b0bded6fe8b1a34d7cf086533ad48a25ee..13336b1d41ddf0bc7f04d7d621210a8f70a39efb 100644 |
--- a/chrome/renderer/resources/extensions/page_action_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/page_action_custom_bindings.js |
@@ -4,11 +4,9 @@ |
// Custom bindings for the pageAction API. |
-(function() { |
+var chromeHidden = requireNative('chrome_hidden').GetChromeHidden(); |
-native function GetChromeHidden(); |
- |
-GetChromeHidden().registerCustomHook('pageAction', function(bindingsAPI) { |
+chromeHidden.registerCustomHook('pageAction', function(bindingsAPI) { |
var apiFunctions = bindingsAPI.apiFunctions; |
var setIcon = bindingsAPI.setIcon; |
@@ -16,5 +14,3 @@ GetChromeHidden().registerCustomHook('pageAction', function(bindingsAPI) { |
setIcon(details, this.name, this.definition.parameters, 'page action'); |
}); |
}); |
- |
-})(); |