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

Unified Diff: components/resource_provider/android/java/org/chromium/resource_provider/Main.java

Issue 1879013002: 🍈 Unify application context usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix caller/callee relationship in resource_provider. Created 4 years, 8 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: components/resource_provider/android/java/org/chromium/resource_provider/Main.java
diff --git a/components/resource_provider/android/java/org/chromium/resource_provider/Main.java b/components/resource_provider/android/java/org/chromium/resource_provider/Main.java
index 639526260d24a362ea65e8c00c61df02e7ede72c..a65e69174a7f4ab702760b97b1695177d927063c 100644
--- a/components/resource_provider/android/java/org/chromium/resource_provider/Main.java
+++ b/components/resource_provider/android/java/org/chromium/resource_provider/Main.java
@@ -6,6 +6,7 @@ package org.chromium.resource_provider;
import android.content.Context;
+import org.chromium.base.ContextUtils;
import org.chromium.base.PathUtils;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
@@ -22,6 +23,7 @@ public final class Main {
@SuppressWarnings("unused")
@CalledByNative
private static void init(Context context) {
+ ContextUtils.initApplicationContext(context.getApplicationContext());
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, context);
}
}

Powered by Google App Engine
This is Rietveld 408576698