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

Issue 489053003: Use content URI to upload photos taken by camera (Closed)

Created:
6 years, 4 months ago by qinmin
Modified:
6 years, 3 months ago
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Use content URI to upload photos taken by camera Currently chrome creates a file path when uploading a photo taken through camera However, this doesn't always work. Instead, we should use content URI. See more details in the crbug. BUG=405593 Committed: https://crrev.com/22b41158f1be60572f4eaa1da8676c36f69cb394 Cr-Commit-Position: refs/heads/master@{#292257}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : addressing tedchoc's comments #

Total comments: 6

Patch Set 3 : addressing palmer's comments #

Patch Set 4 : moving support.v4 import from ui/ to chrome/ #

Total comments: 10

Patch Set 5 : use static variable to replace singleton #

Patch Set 6 : add thread check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -24 lines) Patch
M base/android/java/src/org/chromium/base/ContentUriUtils.java View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/FileProviderHelper.java View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/android/shell/java/AndroidManifest.xml View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/android/shell/res/xml/file_paths.xml View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M remoting/remoting_android.gypi View 1 2 3 2 chunks +1 line, -11 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java View 1 2 3 4 5 7 chunks +32 lines, -13 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
qinmin
PTAL
6 years, 4 months ago (2014-08-20 22:16:46 UTC) #1
Ted C
overall seems reasonable, but I think you'll want a pair of security eyes since you're ...
6 years, 4 months ago (2014-08-21 00:54:51 UTC) #2
qinmin
palmer@ or cpalmer@? I think you mean palmer@
6 years, 4 months ago (2014-08-21 01:14:49 UTC) #3
qinmin
https://codereview.chromium.org/489053003/diff/40001/chrome/android/shell/java/AndroidManifest.xml File chrome/android/shell/java/AndroidManifest.xml (right): https://codereview.chromium.org/489053003/diff/40001/chrome/android/shell/java/AndroidManifest.xml#newcode225 chrome/android/shell/java/AndroidManifest.xml:225: <meta-data android:name="android.support.FILE_PROVIDER_PATHS" On 2014/08/21 00:54:51, Ted C wrote: > ...
6 years, 4 months ago (2014-08-21 17:45:44 UTC) #4
qinmin
palmer@, would you please take a look at the security impacts on this CL? Please ...
6 years, 4 months ago (2014-08-21 17:47:08 UTC) #5
Ted C
lgtm from my side (although I will admit I know little of the provider side ...
6 years, 4 months ago (2014-08-21 18:27:52 UTC) #6
palmer
https://codereview.chromium.org/489053003/diff/60001/ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java File ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java (right): https://codereview.chromium.org/489053003/diff/60001/ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java#newcode45 ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java:45: private static final String IMAGE_FILE_PATH = "images"; Comment that ...
6 years, 4 months ago (2014-08-21 22:21:28 UTC) #7
qinmin
https://codereview.chromium.org/489053003/diff/60001/ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java File ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java (right): https://codereview.chromium.org/489053003/diff/60001/ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java#newcode45 ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java:45: private static final String IMAGE_FILE_PATH = "images"; On 2014/08/21 ...
6 years, 4 months ago (2014-08-22 00:11:21 UTC) #8
palmer
6 years, 4 months ago (2014-08-22 00:20:05 UTC) #9
palmer
lgtm
6 years, 4 months ago (2014-08-22 00:20:12 UTC) #10
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 4 months ago (2014-08-22 00:26:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/489053003/80001
6 years, 4 months ago (2014-08-22 00:31:48 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 01:29:55 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-22 01:35:10 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/8315)
6 years, 4 months ago (2014-08-22 01:35:11 UTC) #15
benm (inactive)
hey min, sorry for the slow response here :-( We are going to need something ...
6 years, 4 months ago (2014-08-22 10:00:18 UTC) #16
qinmin
On 2014/08/22 10:00:18, benm wrote: > hey min, sorry for the slow response here :-( ...
6 years, 4 months ago (2014-08-22 15:23:17 UTC) #17
benm (inactive)
On 2014/08/22 15:23:17, qinmin wrote: > On 2014/08/22 10:00:18, benm wrote: > > hey min, ...
6 years, 4 months ago (2014-08-22 15:45:37 UTC) #18
qinmin
Patchset #5 (id:120001) has been deleted
6 years, 4 months ago (2014-08-25 17:49:04 UTC) #19
qinmin
Patchset #4 (id:100001) has been deleted
6 years, 4 months ago (2014-08-25 17:49:11 UTC) #20
qinmin
qinmin@chromium.org changed reviewers: + yfriedman@chromium.org
6 years, 4 months ago (2014-08-25 17:54:00 UTC) #21
qinmin
After chatting with @boliu, the support.v4 library cannot be imported by any classes in ui/. ...
6 years, 4 months ago (2014-08-25 17:54:01 UTC) #22
qinmin
qinmin@chromium.org changed reviewers: + thakis@chromium.org, weitaosu@chromium.org
6 years, 4 months ago (2014-08-25 17:56:21 UTC) #23
qinmin
+thakis since jochen is out. +weitaosu PTAL
6 years, 4 months ago (2014-08-25 17:56:22 UTC) #24
Nico
https://codereview.chromium.org/489053003/diff/140001/chrome/chrome.gyp File chrome/chrome.gyp (right): https://codereview.chromium.org/489053003/diff/140001/chrome/chrome.gyp#newcode656 chrome/chrome.gyp:656: '../third_party/android_tools/android_tools.gyp:android_support_v13_javalib', Huh, do we really have to support at ...
6 years, 4 months ago (2014-08-25 18:25:10 UTC) #25
qinmin
https://codereview.chromium.org/489053003/diff/140001/chrome/chrome.gyp File chrome/chrome.gyp (right): https://codereview.chromium.org/489053003/diff/140001/chrome/chrome.gyp#newcode656 chrome/chrome.gyp:656: '../third_party/android_tools/android_tools.gyp:android_support_v13_javalib', These are not simply two different versions, the ...
6 years, 4 months ago (2014-08-25 18:29:13 UTC) #26
Nico
Ok, chrome/ lgtm. Thanks for explaining :-)
6 years, 4 months ago (2014-08-25 18:30:04 UTC) #27
Yaron
https://codereview.chromium.org/489053003/diff/140001/base/android/java/src/org/chromium/base/ContentUriUtils.java File base/android/java/src/org/chromium/base/ContentUriUtils.java (right): https://codereview.chromium.org/489053003/diff/140001/base/android/java/src/org/chromium/base/ContentUriUtils.java#newcode25 base/android/java/src/org/chromium/base/ContentUriUtils.java:25: * Class for providing functionalities to translate a file ...
6 years, 4 months ago (2014-08-25 19:13:05 UTC) #28
qinmin
https://codereview.chromium.org/489053003/diff/140001/base/android/java/src/org/chromium/base/ContentUriUtils.java File base/android/java/src/org/chromium/base/ContentUriUtils.java (right): https://codereview.chromium.org/489053003/diff/140001/base/android/java/src/org/chromium/base/ContentUriUtils.java#newcode25 base/android/java/src/org/chromium/base/ContentUriUtils.java:25: * Class for providing functionalities to translate a file ...
6 years, 4 months ago (2014-08-25 20:27:19 UTC) #29
Yaron
lgtm https://codereview.chromium.org/489053003/diff/140001/base/android/java/src/org/chromium/base/ContentUriUtils.java File base/android/java/src/org/chromium/base/ContentUriUtils.java (right): https://codereview.chromium.org/489053003/diff/140001/base/android/java/src/org/chromium/base/ContentUriUtils.java#newcode48 base/android/java/src/org/chromium/base/ContentUriUtils.java:48: if (mFileProviderUtil != null) { On 2014/08/25 20:27:19, ...
6 years, 4 months ago (2014-08-25 23:37:33 UTC) #30
qinmin
https://codereview.chromium.org/489053003/diff/140001/base/android/java/src/org/chromium/base/ContentUriUtils.java File base/android/java/src/org/chromium/base/ContentUriUtils.java (right): https://codereview.chromium.org/489053003/diff/140001/base/android/java/src/org/chromium/base/ContentUriUtils.java#newcode48 base/android/java/src/org/chromium/base/ContentUriUtils.java:48: if (mFileProviderUtil != null) { On 2014/08/25 23:37:33, Yaron ...
6 years, 4 months ago (2014-08-26 00:24:03 UTC) #31
qinmin
@weitaosu, would you please take a look at remoting/? we shouldn't use the individual jar ...
6 years, 4 months ago (2014-08-26 00:25:26 UTC) #32
qinmin
qinmin@chromium.org changed reviewers: + lambroslambrou@chromium.org, sergeyu@chromium.org - weitaosu@chromium.org
6 years, 3 months ago (2014-08-26 17:18:33 UTC) #33
qinmin
+sergeyu and lambroslambrou for OWNER of remoting/
6 years, 3 months ago (2014-08-26 17:18:33 UTC) #34
qinmin
Patchset #6 (id:180001) has been deleted
6 years, 3 months ago (2014-08-26 17:43:32 UTC) #35
qinmin
Patchset #6 (id:200001) has been deleted
6 years, 3 months ago (2014-08-26 22:16:53 UTC) #36
qinmin
ping, @sergeyu, would you please take a look at remoting/? thanks
6 years, 3 months ago (2014-08-27 16:59:08 UTC) #37
Sergey Ulanov
remoting lgtm
6 years, 3 months ago (2014-08-27 21:19:47 UTC) #38
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 3 months ago (2014-08-27 21:21:37 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/489053003/220001
6 years, 3 months ago (2014-08-27 21:23:14 UTC) #40
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-27 22:17:59 UTC) #41
commit-bot: I haz the power
Committed patchset #6 (id:220001) as d394007088233f0182e775f1b1ca7cfb641af757
6 years, 3 months ago (2014-08-27 23:01:29 UTC) #42
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:55:16 UTC) #43
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/22b41158f1be60572f4eaa1da8676c36f69cb394
Cr-Commit-Position: refs/heads/master@{#292257}

Powered by Google App Engine
This is Rietveld 408576698