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

Unified Diff: android_webview/tools/WebViewShell/src/org/chromium/webview_shell/JankActivity.java

Issue 1785283005: [WebView] Reorganize all of the WebView Shell apks into their own dir. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/tools/WebViewShell/src/org/chromium/webview_shell/JankActivity.java
diff --git a/android_webview/tools/WebViewShell/src/org/chromium/webview_shell/JankActivity.java b/android_webview/tools/WebViewShell/src/org/chromium/webview_shell/JankActivity.java
deleted file mode 100644
index 13390b7de25d802089cc684829278e64cf0d0a32..0000000000000000000000000000000000000000
--- a/android_webview/tools/WebViewShell/src/org/chromium/webview_shell/JankActivity.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.webview_shell;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.os.Bundle;
-import android.webkit.CookieManager;
-import android.webkit.WebView;
-import android.webkit.WebViewClient;
-
-/**
- * This activity is designed for Android Jank testing of WebView. It takes a URL as an argument, and
- * displays the page ready for the Jank tester to test scrolling etc.
- */
-public class JankActivity extends Activity {
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- getWindow().setTitle(
- getResources().getString(R.string.title_activity_jank));
- setContentView(R.layout.activity_webview);
-
- WebView webView = (WebView) findViewById(R.id.webview);
- CookieManager.setAcceptFileSchemeCookies(true);
-
- webView.setWebViewClient(new WebViewClient() {
- @Override
- public boolean shouldOverrideUrlLoading(WebView webView, String url) {
- return false;
- }
- });
-
- String url = getUrlFromIntent(getIntent());
- webView.loadUrl(url);
- }
-
- private static String getUrlFromIntent(Intent intent) {
- return intent != null ? intent.getDataString() : null;
- }
-
-}

Powered by Google App Engine
This is Rietveld 408576698