| 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 b52737467017ecc252e65ec67c346d70825ab9f7..f71b99f6ad1753dc77a75ff1bed6a5330b8d9eaa 100644
|
| --- a/chrome/renderer/resources/extensions/page_action_custom_bindings.js
|
| +++ b/chrome/renderer/resources/extensions/page_action_custom_bindings.js
|
| @@ -4,10 +4,12 @@
|
|
|
| // Custom bindings for the pageAction API.
|
|
|
| -var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
|
| +var Bindings = require('schema_binding_generator').Bindings;
|
| +var bindings = new Bindings('pageAction');
|
| +
|
| var setIcon = require('setIcon').setIcon;
|
|
|
| -chromeHidden.registerCustomHook('pageAction', function(bindingsAPI) {
|
| +bindings.registerCustomHook(function(bindingsAPI) {
|
| var apiFunctions = bindingsAPI.apiFunctions;
|
|
|
| apiFunctions.setHandleRequest('setIcon', function(details, callback) {
|
| @@ -15,3 +17,5 @@ chromeHidden.registerCustomHook('pageAction', function(bindingsAPI) {
|
| 'page action');
|
| });
|
| });
|
| +
|
| +exports.bindings = bindings.generate();
|
|
|