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

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

Issue 156333002: Enable icu_use_data_file_flag on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « android_webview/android_webview_tests.gypi ('k') | base/i18n/icu_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.content.browser.ResourceExtractor; 14 import org.chromium.content.browser.ResourceExtractor;
15 15
16 public class AwShellApplication extends Application { 16 public class AwShellApplication extends Application {
17 17
18 private static final String TAG = "AwShellApplication"; 18 private static final String TAG = "AwShellApplication";
19 /** The minimum set of .pak files the test runner needs. */ 19 /** The minimum set of .pak files the test runner needs. */
20 private static final String[] MANDATORY_PAKS = { 20 private static final String[] MANDATORY_PAKS = {
21 "webviewchromium.pak", "en-US.pak" 21 "webviewchromium.pak", "en-US.pak", "icudtl.dat"
22 }; 22 };
23 23
24 @Override 24 @Override
25 public void onCreate() { 25 public void onCreate() {
26 super.onCreate(); 26 super.onCreate();
27 27
28 AwShellResourceProvider.registerResources(this); 28 AwShellResourceProvider.registerResources(this);
29 29
30 CommandLine.initFromFile("/data/local/tmp/android-webview-command-line") ; 30 CommandLine.initFromFile("/data/local/tmp/android-webview-command-line") ;
31 31
32 if (CommandLine.getInstance().hasSwitch(BaseSwitches.WAIT_FOR_JAVA_DEBUG GER)) { 32 if (CommandLine.getInstance().hasSwitch(BaseSwitches.WAIT_FOR_JAVA_DEBUG GER)) {
33 Log.e(TAG, "Waiting for Java debugger to connect..."); 33 Log.e(TAG, "Waiting for Java debugger to connect...");
34 Debug.waitForDebugger(); 34 Debug.waitForDebugger();
35 Log.e(TAG, "Java debugger connected. Resuming execution."); 35 Log.e(TAG, "Java debugger connected. Resuming execution.");
36 } 36 }
37 37
38 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAKS); 38 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAKS);
39 ResourceExtractor.setExtractImplicitLocaleForTesting(false); 39 ResourceExtractor.setExtractImplicitLocaleForTesting(false);
40 AwBrowserProcess.loadLibrary(); 40 AwBrowserProcess.loadLibrary();
41 } 41 }
42 } 42 }
OLDNEW
« no previous file with comments | « android_webview/android_webview_tests.gypi ('k') | base/i18n/icu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698