summaryrefslogtreecommitdiffstats
path: root/android_webview/tools/WebViewShell
diff options
context:
space:
mode:
authortnakamura <tnakamura@chromium.org>2015-09-11 15:58:08 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-11 22:58:52 +0000
commit03654ed11b42a466f55807edd40fde55bc55897e (patch)
treeb0aa96b1f7d81a3f61c64221928f4596374d9f0d /android_webview/tools/WebViewShell
parentcbbdfaab892e6a3cd79da87fc68a9a137cf3340f (diff)
downloadchromium_src-03654ed11b42a466f55807edd40fde55bc55897e.zip
chromium_src-03654ed11b42a466f55807edd40fde55bc55897e.tar.gz
chromium_src-03654ed11b42a466f55807edd40fde55bc55897e.tar.bz2
Enable debugging by default in webview_shell so that it is visible when debugging with chrome://inspect
Review URL: https://codereview.chromium.org/1332013002 Cr-Commit-Position: refs/heads/master@{#348499}
Diffstat (limited to 'android_webview/tools/WebViewShell')
-rw-r--r--android_webview/tools/WebViewShell/src/org/chromium/webview_shell/WebViewBrowserActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/android_webview/tools/WebViewShell/src/org/chromium/webview_shell/WebViewBrowserActivity.java b/android_webview/tools/WebViewShell/src/org/chromium/webview_shell/WebViewBrowserActivity.java
index fbe41e3..e39f529 100644
--- a/android_webview/tools/WebViewShell/src/org/chromium/webview_shell/WebViewBrowserActivity.java
+++ b/android_webview/tools/WebViewShell/src/org/chromium/webview_shell/WebViewBrowserActivity.java
@@ -10,6 +10,7 @@ import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
+import android.os.Build;
import android.os.Bundle;
import android.view.KeyEvent;
@@ -61,6 +62,9 @@ public class WebViewBrowserActivity extends Activity implements PopupMenu.OnMenu
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
+ WebView.setWebContentsDebuggingEnabled(true);
+ }
setContentView(R.layout.activity_webview_browser);
mWebView = (WebView) findViewById(R.id.webview);
WebSettings settings = mWebView.getSettings();