diff options
author | zhchbin@gmail.com <zhchbin@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-13 19:47:23 +0000 |
---|---|---|
committer | zhchbin@gmail.com <zhchbin@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-13 19:47:23 +0000 |
commit | df29744db2dfe21c90308089ff70197a5dd710f0 (patch) | |
tree | 1c38791b8f1b77dc5bd114faf8a6ea92c0e4c0d4 | |
parent | c1d9b2b92e2bd3f9e303ca951a82c8668b49f6ba (diff) | |
download | chromium_src-df29744db2dfe21c90308089ff70197a5dd710f0.zip chromium_src-df29744db2dfe21c90308089ff70197a5dd710f0.tar.gz chromium_src-df29744db2dfe21c90308089ff70197a5dd710f0.tar.bz2 |
Better error message in app.window.current() when called from bg page.
BUG=179735
TEST=Call app.window.current() in the bg page.
Review URL: https://chromiumcodereview.appspot.com/16622003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206140 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/renderer/resources/extensions/app_window_custom_bindings.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/resources/extensions/app_window_custom_bindings.js b/chrome/renderer/resources/extensions/app_window_custom_bindings.js index ed0edd1..fb5d312 100644 --- a/chrome/renderer/resources/extensions/app_window_custom_bindings.js +++ b/chrome/renderer/resources/extensions/app_window_custom_bindings.js @@ -72,8 +72,8 @@ appWindow.registerCustomHook(function(bindingsAPI) { apiFunctions.setHandleRequest('current', function() { if (!currentAppWindow) { - console.error('chrome.app.window.current() is null -- window not ' + - 'created with chrome.app.window.create()'); + console.error('The JavaScript context calling ' + + 'chrome.app.window.current() has no associated AppWindow.'); return null; } return currentAppWindow; |