diff options
author | koz@chromium.org <koz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-03 23:28:03 +0000 |
---|---|---|
committer | koz@chromium.org <koz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-03 23:28:03 +0000 |
commit | e3e778724e5f96d204a9d34912ffb5c4786ad289 (patch) | |
tree | d56b5acb84cfe0957de0a4dfd9cbbbda06eb055d /chrome/renderer/resources/extensions/system_indicator_custom_bindings.js | |
parent | 06c8245612efb10678949002650362c842396219 (diff) | |
download | chromium_src-e3e778724e5f96d204a9d34912ffb5c4786ad289.zip chromium_src-e3e778724e5f96d204a9d34912ffb5c4786ad289.tar.gz chromium_src-e3e778724e5f96d204a9d34912ffb5c4786ad289.tar.bz2 |
Revert 185709
> Set up V8 bindings for extension/app APIs when they're first used, not on
> context creation. This should gives us a significant reduction in extension/app
> startup time and slightly better memory usage.
>
> It also gives us better error messages, the chance to complete the
> implementation of API features, and eventually the ability to expose select
> extension APIs (e.g. extension.sendMessage) to web pages.
>
> BUG=163678,120070,55316,177163
> TBR=ben@chromium.org
>
> Review URL: https://chromiumcodereview.appspot.com/11571014
TBR=cduvall@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/resources/extensions/system_indicator_custom_bindings.js')
-rw-r--r-- | chrome/renderer/resources/extensions/system_indicator_custom_bindings.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/renderer/resources/extensions/system_indicator_custom_bindings.js b/chrome/renderer/resources/extensions/system_indicator_custom_bindings.js index 0551a83..0d58de1 100644 --- a/chrome/renderer/resources/extensions/system_indicator_custom_bindings.js +++ b/chrome/renderer/resources/extensions/system_indicator_custom_bindings.js @@ -2,16 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Custom binding for the systemIndicator API. -// TODO(dewittj) Refactor custom binding to reduce redundancy between the +// Custom bindings for the systemIndicator API. +// TODO(dewittj) Refactor custom bindings to reduce redundancy between the // extension action APIs. -var binding = require('binding').Binding.create('systemIndicator'); - var chromeHidden = requireNative('chrome_hidden').GetChromeHidden(); var setIcon = require('setIcon').setIcon; -binding.registerCustomHook(function(bindingsAPI) { +chromeHidden.registerCustomHook('systemIndicator', function(bindingsAPI) { var apiFunctions = bindingsAPI.apiFunctions; apiFunctions.setHandleRequest('setIcon', function(details, callback) { @@ -20,4 +18,3 @@ binding.registerCustomHook(function(bindingsAPI) { }); }); -exports.binding = binding.generate(); |