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

Side by Side Diff: content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java

Issue 2333713003: Move PathUtils to use ContextUtils. (Closed)
Patch Set: Rebase Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.chromium_linker_test_apk; 5 package org.chromium.chromium_linker_test_apk;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 8
9 import org.chromium.base.BaseChromiumApplication; 9 import org.chromium.base.BaseChromiumApplication;
10 import org.chromium.base.ContextUtils; 10 import org.chromium.base.ContextUtils;
11 import org.chromium.base.PathUtils; 11 import org.chromium.base.PathUtils;
12 12
13 /** 13 /**
14 * Application for testing the Chromium Linker 14 * Application for testing the Chromium Linker
15 */ 15 */
16 public class ChromiumLinkerTestApplication extends BaseChromiumApplication { 16 public class ChromiumLinkerTestApplication extends BaseChromiumApplication {
17 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromium_linker _test"; 17 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromium_linker _test";
18 18
19 public ChromiumLinkerTestApplication() { 19 @Override
20 super(); 20 protected void attachBaseContext(Context base) {
21 super.attachBaseContext(base);
21 ContextUtils.initApplicationContext(this); 22 ContextUtils.initApplicationContext(this);
22 } 23 }
23 24
24 @Override 25 @Override
25 public void onCreate() { 26 public void onCreate() {
26 super.onCreate(); 27 super.onCreate();
27 initializeApplicationParameters(this); 28 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
28 }
29
30 public static void initializeApplicationParameters(Context context) {
31 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, c ontext);
32 } 29 }
33 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698