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

Unified Diff: base/test/test_file_util_android.cc

Issue 2784353002: Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: Fix tests Created 3 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: base/test/test_file_util_android.cc
diff --git a/base/test/test_file_util_android.cc b/base/test/test_file_util_android.cc
index f773af95ab60a827500c183d7c93da25df78ebfa..d085f13e9b91304c85c4ef0665b5c67527647378 100644
--- a/base/test/test_file_util_android.cc
+++ b/base/test/test_file_util_android.cc
@@ -19,8 +19,7 @@ FilePath InsertImageIntoMediaStore(const FilePath& path) {
ScopedJavaLocalRef<jstring> j_path =
base::android::ConvertUTF8ToJavaString(env, path.value());
ScopedJavaLocalRef<jstring> j_uri =
- Java_ContentUriTestUtils_insertImageIntoMediaStore(
- env, base::android::GetApplicationContext(), j_path);
+ Java_ContentUriTestUtils_insertImageIntoMediaStore(env, j_path);
std::string uri = base::android::ConvertJavaStringToUTF8(j_uri);
return FilePath(uri);
}
« no previous file with comments | « base/test/multiprocess_test_android.cc ('k') | chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698