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

Side by Side Diff: android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java

Issue 62333025: [Android] Move CommandLine.java to base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 1 month 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
« no previous file with comments | « no previous file | base/android/base_jni_registrar.cc » ('j') | base/base.gypi » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.android_webview.shell; 5 package org.chromium.android_webview.shell;
6 6
7 import android.app.Application; 7 import android.app.Application;
8 import android.content.Context; 8 import android.content.Context;
9 import android.os.Debug; 9 import android.os.Debug;
10 import android.util.Log; 10 import android.util.Log;
11 11
12 import org.chromium.base.BaseSwitches;
13 import org.chromium.base.CommandLine;
12 import org.chromium.android_webview.AwBrowserProcess; 14 import org.chromium.android_webview.AwBrowserProcess;
13 import org.chromium.content.browser.ResourceExtractor; 15 import org.chromium.content.browser.ResourceExtractor;
14 import org.chromium.content.common.CommandLine;
15 16
16 public class AwShellApplication extends Application { 17 public class AwShellApplication extends Application {
17 18
18 private static final String TAG = "AwShellApplication"; 19 private static final String TAG = "AwShellApplication";
19 /** The minimum set of .pak files the test runner needs. */ 20 /** The minimum set of .pak files the test runner needs. */
20 private static final String[] MANDATORY_PAKS = { 21 private static final String[] MANDATORY_PAKS = {
21 "webviewchromium.pak", "en-US.pak" 22 "webviewchromium.pak", "en-US.pak"
22 }; 23 };
23 24
24 @Override 25 @Override
25 public void onCreate() { 26 public void onCreate() {
26 super.onCreate(); 27 super.onCreate();
27 28
28 AwShellResourceProvider.registerResources(this); 29 AwShellResourceProvider.registerResources(this);
29 30
30 CommandLine.initFromFile("/data/local/tmp/android-webview-command-line") ; 31 CommandLine.initFromFile("/data/local/tmp/android-webview-command-line") ;
31 32
32 if (CommandLine.getInstance().hasSwitch(CommandLine.WAIT_FOR_JAVA_DEBUGG ER)) { 33 if (CommandLine.getInstance().hasSwitch(BaseSwitches.WAIT_FOR_JAVA_DEBUG GER)) {
33 Log.e(TAG, "Waiting for Java debugger to connect..."); 34 Log.e(TAG, "Waiting for Java debugger to connect...");
34 Debug.waitForDebugger(); 35 Debug.waitForDebugger();
35 Log.e(TAG, "Java debugger connected. Resuming execution."); 36 Log.e(TAG, "Java debugger connected. Resuming execution.");
36 } 37 }
37 38
38 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAKS); 39 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAKS);
39 ResourceExtractor.setExtractImplicitLocaleForTesting(false); 40 ResourceExtractor.setExtractImplicitLocaleForTesting(false);
40 AwBrowserProcess.loadLibrary(); 41 AwBrowserProcess.loadLibrary();
41 } 42 }
42 } 43 }
OLDNEW
« no previous file with comments | « no previous file | base/android/base_jni_registrar.cc » ('j') | base/base.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698