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

Unified Diff: chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java

Issue 10911202: Revert 155950 - Add initial Chromium TestShell support for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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: chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java
===================================================================
--- chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java (revision 155957)
+++ chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 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.chrome.testshell;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.util.Log;
-
-import org.chromium.content.app.LibraryLoader;
-import org.chromium.content.browser.ContentView;
-import org.chromium.content.common.CommandLine;
-
-/**
- * The {@link Activity} component of a basic test shell to test Chrome features.
- */
-public class ChromiumTestShellActivity extends Activity {
- private static final String TAG = ChromiumTestShellActivity.class.getCanonicalName();
- private static final String COMMAND_LINE_FILE =
- "/data/local/tmp/chrome-test-shell-command-line";
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- if (!CommandLine.isInitialized()) CommandLine.initFromFile(COMMAND_LINE_FILE);
- waitForDebuggerIfNeeded();
-
- LibraryLoader.loadAndInitSync();
- initializeContentViewResources();
-
- ContentView.initChromiumBrowserProcess(this, ContentView.MAX_RENDERERS_AUTOMATIC);
- }
-
- private void waitForDebuggerIfNeeded() {
- if (CommandLine.getInstance().hasSwitch(CommandLine.WAIT_FOR_JAVA_DEBUGGER)) {
- Log.e(TAG, "Waiting for Java debugger to connect...");
- android.os.Debug.waitForDebugger();
- Log.e(TAG, "Java debugger connected. Resuming execution.");
- }
- }
-
- private void initializeContentViewResources() {
- }
-}

Powered by Google App Engine
This is Rietveld 408576698