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

Side by Side Diff: android_webview/tools/WebViewTelemetryShell/src/org/chromium/telemetry_shell/TelemetryActivity.java

Issue 443953002: Move WebViewShell from Android to Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update package name in another place. Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.telemetry_shell;
6
7 import android.app.Activity;
8 import android.os.Bundle;
9 import android.webkit.CookieManager;
10 import android.webkit.WebView;
11 import android.webkit.WebViewClient;
12
13 /**
14 * This activity is designed for Telemetry testing of WebView.
15 */
16 public class TelemetryActivity extends Activity {
17
18 @Override
19 public void onCreate(Bundle savedInstanceState) {
20 super.onCreate(savedInstanceState);
21 getWindow().setTitle(
22 getResources().getString(R.string.title_activity_telemetry));
23 setContentView(R.layout.activity_telemetry);
24
25 WebView webView = (WebView) findViewById(R.id.webview);
26 CookieManager.setAcceptFileSchemeCookies(true);
27 webView.getSettings().setJavaScriptEnabled(true);
28
29 webView.setWebViewClient(new WebViewClient() {
30 @Override
31 public boolean shouldOverrideUrlLoading(WebView webView, String url) {
32 return false;
33 }
34 });
35
36 webView.loadUrl("about:blank");
37 }
38 }
OLDNEW
« no previous file with comments | « android_webview/tools/WebViewTelemetryShell/src/org/chromium/telemetry_shell/JankActivity.java ('k') | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698