Rename addConsoleMessage to onConsoleMessage to reflect SDK API changes.

BUG=2271636

Change-Id: If41a260f24483e536794c975b532a966ac207e1f
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 @@
             }
         }
 
-        /* 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