Index: chrome/test/chromedriver/test/webview_shell/java/src/org/chromium/chromedriver_webview_shell/Main.java |
diff --git a/chrome/test/chromedriver/test/webview_shell/java/src/org/chromium/chromedriver_webview_shell/Main.java b/chrome/test/chromedriver/test/webview_shell/java/src/org/chromium/chromedriver_webview_shell/Main.java |
index aa13b6d066f5fc8c7177a9461f74359d3ce35e43..f1283da8b5294c24a5b23e00bf856d0e234adec7 100644 |
--- a/chrome/test/chromedriver/test/webview_shell/java/src/org/chromium/chromedriver_webview_shell/Main.java |
+++ b/chrome/test/chromedriver/test/webview_shell/java/src/org/chromium/chromedriver_webview_shell/Main.java |
@@ -6,8 +6,6 @@ package org.chromium.chromedriver_webview_shell; |
import android.app.Activity; |
import android.content.Intent; |
-import android.content.res.Configuration; |
-import android.os.Build; |
import android.os.Bundle; |
import android.view.Window; |
import android.webkit.WebChromeClient; |
@@ -33,11 +31,13 @@ public class Main extends Activity { |
final Activity activity = this; |
mWebView.setWebChromeClient(new WebChromeClient() { |
+ @Override |
public void onProgressChanged(WebView view, int progress) { |
activity.setProgress(progress * 100); |
} |
}); |
mWebView.setWebViewClient(new WebViewClient() { |
+ @Override |
public void onReceivedError(WebView view, int errorCode, String description, |
String failingUrl) { |
Toast.makeText(activity, "Error: " + description, Toast.LENGTH_SHORT).show(); |