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

Unified Diff: base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java

Issue 2772343003: Android: Remove GetApplicationContext part 1 (Closed)
Patch Set: rebase 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
« no previous file with comments | « base/android/content_uri_utils.cc ('k') | base/android/java/src/org/chromium/base/ApkAssets.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
diff --git a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
index f773859b842dd295f56901844e80477a0e20d362..b3ad653d4a8cd407306eb86a2c77cf0152418b92 100644
--- a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
+++ b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
@@ -615,13 +615,12 @@ public class ApiCompatibilityUtils {
* Get a URI for |file| which has the image capture. This function assumes that path of |file|
* is based on the result of UiUtils.getDirectoryForImageCapture().
*
- * @param context The application context.
* @param file image capture file.
* @return URI for |file|.
*/
- public static Uri getUriForImageCaptureFile(Context context, File file) {
+ public static Uri getUriForImageCaptureFile(File file) {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2
- ? ContentUriUtils.getContentUriFromFile(context, file)
+ ? ContentUriUtils.getContentUriFromFile(file)
: Uri.fromFile(file);
}
« no previous file with comments | « base/android/content_uri_utils.cc ('k') | base/android/java/src/org/chromium/base/ApkAssets.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698