From 65acc3541e4bcf8d9a0b3f59941c40fdb106c703 Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Thu, 19 Nov 2009 18:16:04 +0000 Subject: [PATCH] Rename addConsoleMessage to onConsoleMessage to reflect SDK API changes. BUG=2271636 Change-Id: If41a260f24483e536794c975b532a966ac207e1f --- src/com/android/browser/Tab.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java index 3bb136c..54dc76d 100644 --- a/src/com/android/browser/Tab.java +++ b/src/com/android/browser/Tab.java @@ -846,13 +846,15 @@ class Tab { } } - /* Adds a JavaScript error message to the system log. + /* Adds a JavaScript error message to the system log and if the JS + * console is enabled in the about:debug options, to that console + * also. * @param message The error message to report. * @param lineNumber The line number of the error. * @param sourceID The name of the source file that caused the error. */ @Override - public void addMessageToConsole(String message, int lineNumber, + public void onConsoleMessage(String message, int lineNumber, String sourceID) { if (mInForeground) { // call getErrorConsole(true) so it will create one if needed -- 2.11.0