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

Unified Diff: android_webview/tools/WebViewShell/src/org/chromium/webview_shell/TelemetryMemoryPressureActivity.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/TelemetryMemoryPressureActivity.java
diff --git a/android_webview/tools/WebViewShell/src/org/chromium/webview_shell/TelemetryMemoryPressureActivity.java b/android_webview/tools/WebViewShell/src/org/chromium/webview_shell/TelemetryMemoryPressureActivity.java
deleted file mode 100644
index f0b8a7efc285d5c6a315ac8a71731df3e3489475..0000000000000000000000000000000000000000
--- a/android_webview/tools/WebViewShell/src/org/chromium/webview_shell/TelemetryMemoryPressureActivity.java
+++ /dev/null
@@ -1,53 +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;
-
-import org.chromium.base.Log;
-import org.chromium.base.MemoryPressureListener;
-
-/**
- * This activity is designed for sending memory pressure signals for testing WebView.
- */
-public class TelemetryMemoryPressureActivity extends Activity {
-
- private static final String TAG = "WebViewTelemetry";
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- getWindow().setTitle(
- getResources().getString(R.string.title_activity_telemetry));
- setContentView(R.layout.activity_webview);
-
- WebView webview = (WebView) findViewById(R.id.webview);
- CookieManager.setAcceptFileSchemeCookies(true);
- webview.getSettings().setJavaScriptEnabled(true);
-
- webview.setWebViewClient(new WebViewClient() {
- @Override
- public boolean shouldOverrideUrlLoading(WebView webView, String url) {
- return false;
- }
- });
-
- webview.loadUrl("about:blank");
- }
-
- @Override
- protected void onNewIntent(Intent intent) {
- moveTaskToBack(true);
- if (MemoryPressureListener.handleDebugIntent(this, intent.getAction())) {
- Log.i(TAG, "MemoryPressureListener.handleDebugIntent(this, " + intent.getAction()
- + ") is true");
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698