| Index: chrome/renderer/resources/extensions/page_action_custom_bindings.js
|
| ===================================================================
|
| --- chrome/renderer/resources/extensions/page_action_custom_bindings.js (revision 184858)
|
| +++ chrome/renderer/resources/extensions/page_action_custom_bindings.js (working copy)
|
| @@ -2,13 +2,12 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// Custom binding for the pageAction API.
|
| +// Custom bindings for the pageAction API.
|
|
|
| -var binding = require('binding').Binding.create('pageAction');
|
| -
|
| +var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
|
| var setIcon = require('setIcon').setIcon;
|
|
|
| -binding.registerCustomHook(function(bindingsAPI) {
|
| +chromeHidden.registerCustomHook('pageAction', function(bindingsAPI) {
|
| var apiFunctions = bindingsAPI.apiFunctions;
|
|
|
| apiFunctions.setHandleRequest('setIcon', function(details, callback) {
|
| @@ -16,5 +15,3 @@
|
| 'page action');
|
| });
|
| });
|
| -
|
| -exports.binding = binding.generate();
|
|
|