Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4630)

Unified Diff: chrome/renderer/resources/extensions/app_window_custom_bindings.js

Issue 16622003: Better error message in app.window.current() when called from bg page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/app_window_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/app_window_custom_bindings.js b/chrome/renderer/resources/extensions/app_window_custom_bindings.js
index f6171e192ce133efe9e4dec631ba26779377e323..679aa0075670e4119220115e2af223bad5f4cf28 100644
--- a/chrome/renderer/resources/extensions/app_window_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/app_window_custom_bindings.js
@@ -73,8 +73,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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698