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

Unified Diff: blimp/client/app/android/java/src/org/chromium/blimp/BlimpApplication.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 side-by-side diff with in-line comments
Download patch
Index: blimp/client/app/android/java/src/org/chromium/blimp/BlimpApplication.java
diff --git a/blimp/client/app/android/java/src/org/chromium/blimp/BlimpApplication.java b/blimp/client/app/android/java/src/org/chromium/blimp/BlimpApplication.java
index ab9e1bfa9445c8f8d3e3479407a49249e35d56ab..44b9d0b46684dbe16673826c4cde12a3243437d7 100644
--- a/blimp/client/app/android/java/src/org/chromium/blimp/BlimpApplication.java
+++ b/blimp/client/app/android/java/src/org/chromium/blimp/BlimpApplication.java
@@ -5,6 +5,7 @@
package org.chromium.blimp;
import android.app.Application;
+import android.content.Context;
import org.chromium.base.BaseChromiumApplication;
import org.chromium.base.CommandLineInitUtil;
@@ -18,15 +19,16 @@ public class BlimpApplication extends BaseChromiumApplication {
private static final String COMMAND_LINE_FILE = "blimp-command-line";
private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "blimp";
- public BlimpApplication() {
- super();
+ @Override
+ protected void attachBaseContext(Context base) {
+ super.attachBaseContext(base);
ContextUtils.initApplicationContext(this);
}
@Override
public void onCreate() {
super.onCreate();
- PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, this);
+ PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
initCommandLine();
}

Powered by Google App Engine
This is Rietveld 408576698