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

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

Issue 548023002: Migrate ResourceExtractor.java inside org.chromium.base package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rolling the AOSP deps Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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.os.Debug; 8 import android.os.Debug;
9 import android.util.Log; 9 import android.util.Log;
10 10
11 import org.chromium.android_webview.AwBrowserProcess; 11 import org.chromium.android_webview.AwBrowserProcess;
12 import org.chromium.base.BaseSwitches; 12 import org.chromium.base.BaseSwitches;
13 import org.chromium.base.CommandLine; 13 import org.chromium.base.CommandLine;
14 import org.chromium.base.ResourceExtractor;
14 import org.chromium.base.TraceEvent; 15 import org.chromium.base.TraceEvent;
15 import org.chromium.content.browser.ResourceExtractor;
16 16
17 /** 17 /**
18 * The android_webview shell Application subclass. 18 * The android_webview shell Application subclass.
19 */ 19 */
20 public class AwShellApplication extends Application { 20 public class AwShellApplication extends Application {
21 21
22 private static final String TAG = "AwShellApplication"; 22 private static final String TAG = "AwShellApplication";
23 /** The minimum set of .pak files the test runner needs. */ 23 /** The minimum set of .pak files the test runner needs. */
24 private static final String[] MANDATORY_PAKS = { "icudtl.dat" }; 24 private static final String[] MANDATORY_PAKS = { "icudtl.dat" };
25 25
(...skipping 14 matching lines...) Expand all
40 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAKS); 40 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAKS);
41 ResourceExtractor.setExtractImplicitLocaleForTesting(false); 41 ResourceExtractor.setExtractImplicitLocaleForTesting(false);
42 AwBrowserProcess.loadLibrary(); 42 AwBrowserProcess.loadLibrary();
43 43
44 if (CommandLine.getInstance().hasSwitch(AwShellSwitches.ENABLE_ATRACE)) { 44 if (CommandLine.getInstance().hasSwitch(AwShellSwitches.ENABLE_ATRACE)) {
45 Log.e(TAG, "Enabling Android trace."); 45 Log.e(TAG, "Enabling Android trace.");
46 TraceEvent.setATraceEnabled(true); 46 TraceEvent.setATraceEnabled(true);
47 } 47 }
48 } 48 }
49 } 49 }
OLDNEW
« no previous file with comments | « android_webview/buildbot/aosp_manifest.xml ('k') | base/android/java/src/org/chromium/base/LocaleUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698