| Index: chrome/renderer/resources/extensions/browser_action_custom_bindings.js
|
| ===================================================================
|
| --- chrome/renderer/resources/extensions/browser_action_custom_bindings.js (revision 125813)
|
| +++ chrome/renderer/resources/extensions/browser_action_custom_bindings.js (working copy)
|
| @@ -4,9 +4,11 @@
|
|
|
| // Custom bindings for the browserAction API.
|
|
|
| -var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
|
| +(function() {
|
|
|
| -chromeHidden.registerCustomHook('browserAction', function(bindingsAPI) {
|
| +native function GetChromeHidden();
|
| +
|
| +GetChromeHidden().registerCustomHook('browserAction', function(bindingsAPI) {
|
| var apiFunctions = bindingsAPI.apiFunctions;
|
| var setIcon = bindingsAPI.setIcon;
|
|
|
| @@ -14,3 +16,5 @@
|
| setIcon(details, this.name, this.definition.parameters, 'browser action');
|
| });
|
| });
|
| +
|
| +})();
|
|
|