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

Unified Diff: base/android/apk_assets.cc

Issue 2772343003: Android: Remove GetApplicationContext part 1 (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: base/android/apk_assets.cc
diff --git a/base/android/apk_assets.cc b/base/android/apk_assets.cc
index 19a202ce49c54fefe8f9d2dee6883d83214b5383..1248e150fe11fd76f0bd17b9c51b27acd86d452c 100644
--- a/base/android/apk_assets.cc
+++ b/base/android/apk_assets.cc
@@ -22,8 +22,7 @@ int OpenApkAsset(const std::string& file_path,
// resources :(
JNIEnv* env = base::android::AttachCurrentThread();
ScopedJavaLocalRef<jlongArray> jarr = Java_ApkAssets_open(
- env, base::android::GetApplicationContext(),
- base::android::ConvertUTF8ToJavaString(env, file_path));
+ env, base::android::ConvertUTF8ToJavaString(env, file_path));
std::vector<jlong> results;
base::android::JavaLongArrayToLongVector(env, jarr.obj(), &results);
CHECK_EQ(3U, results.size());
« no previous file with comments | « no previous file | base/android/build_info.cc » ('j') | base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java » ('J')

Powered by Google App Engine
This is Rietveld 408576698