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

Issue 75533002: Fix chrome upload with content uri (Closed)

Created:
7 years, 1 month ago by qinmin
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, erikwright+watch_chromium.org, jam
Visibility:
Public.

Description

Fix chrome upload with content uri For android, the upload file dialog returns files with content uri scheme(content://). This CL makes it possible for upload to work with this new file type. It fixes both the form and fileapi based uploads. BUG=278640 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236192

Patch Set 1 : #

Patch Set 2 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+505 lines, -31 lines) Patch
M base/android/base_jni_registrar.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
A base/android/content_uri_utils.h View 1 chunk +27 lines, -0 lines 0 comments Download
A base/android/content_uri_utils.cc View 1 chunk +39 lines, -0 lines 0 comments Download
A base/android/java/src/org/chromium/base/ContentUriUtils.java View 1 chunk +76 lines, -0 lines 0 comments Download
M base/base.gyp View 1 5 chunks +33 lines, -0 lines 0 comments Download
M base/base.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/file_util_posix.cc View 4 chunks +27 lines, -2 lines 0 comments Download
M base/file_util_unittest.cc View 2 chunks +50 lines, -0 lines 2 comments Download
M base/files/file_path.h View 1 chunk +9 lines, -0 lines 0 comments Download
M base/files/file_path.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M base/files/file_path_unittest.cc View 1 chunk +29 lines, -0 lines 0 comments Download
A base/test/android/java/src/org/chromium/base/ContentUriTestUtils.java View 1 chunk +51 lines, -0 lines 0 comments Download
A base/test/data/file_util/red.png View Binary file 0 comments Download
M base/test/run_all_unittests.cc View 2 chunks +9 lines, -1 line 0 comments Download
M base/test/test_file_util.h View 2 chunks +14 lines, -0 lines 0 comments Download
A base/test/test_file_util_android.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M content/browser/child_process_security_policy_impl.cc View 2 chunks +20 lines, -0 lines 0 comments Download
M net/base/file_stream_context.cc View 2 chunks +22 lines, -7 lines 0 comments Download
M net/base/file_stream_unittest.cc View 2 chunks +53 lines, -0 lines 0 comments Download
A net/data/file_stream_unittest/red.png View Binary file 0 comments Download
M net/test/run_all_unittests.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java View 1 chunk +5 lines, -21 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
qinmin
Reviewers, this CL is cloned from https://codereview.chromium.org/46303005/, PTAL. The previous submit breaks some android tests(however, ...
7 years, 1 month ago (2013-11-18 19:46:58 UTC) #1
qinmin
7 years, 1 month ago (2013-11-18 19:47:38 UTC) #2
mmenke1
On 2013/11/18 19:46:58, qinmin wrote: > Reviewers, this CL is cloned from https://codereview.chromium.org/46303005/, > PTAL. ...
7 years, 1 month ago (2013-11-18 19:48:56 UTC) #3
mmenke
Your "bug=" line is incorrect. net/ LGTM
7 years, 1 month ago (2013-11-18 19:52:54 UTC) #4
Tom Sepez
Messages LGTM.
7 years, 1 month ago (2013-11-18 19:57:23 UTC) #5
qinmin
On 2013/11/18 19:52:54, mmenke wrote: > Your "bug=" line is incorrect. > > net/ LGTM ...
7 years, 1 month ago (2013-11-18 19:59:47 UTC) #6
Yaron
ui/android lgtm
7 years, 1 month ago (2013-11-18 21:52:14 UTC) #7
qinmin
jar@, would you please re-approve this? only one-line change in base.gyp from the last approval. ...
7 years, 1 month ago (2013-11-19 17:34:07 UTC) #8
jar (doing other things)
base lgtm (based on comment that this is a one line addition to the gyp ...
7 years, 1 month ago (2013-11-20 02:39:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/75533002/150001
7 years, 1 month ago (2013-11-20 03:26:14 UTC) #10
commit-bot: I haz the power
Failed to apply patch for base/android/base_jni_registrar.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-20 03:26:24 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/75533002/270001
7 years, 1 month ago (2013-11-20 03:52:01 UTC) #12
commit-bot: I haz the power
Change committed as 236192
7 years, 1 month ago (2013-11-20 07:04:57 UTC) #13
eugenis
https://codereview.chromium.org/75533002/diff/270001/base/file_util_unittest.cc File base/file_util_unittest.cc (right): https://codereview.chromium.org/75533002/diff/270001/base/file_util_unittest.cc#newcode2364 base/file_util_unittest.cc:2364: EXPECT_GT(0, size); This does not look right. In case ...
7 years ago (2013-12-02 14:28:54 UTC) #14
qinmin
7 years ago (2013-12-02 17:35:46 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/75533002/diff/270001/base/file_util_unittest.cc
File base/file_util_unittest.cc (right):

https://codereview.chromium.org/75533002/diff/270001/base/file_util_unittest....
base/file_util_unittest.cc:2364: EXPECT_GT(0, size);
uploaded https://codereview.chromium.org/93963003/  to fix this.

On 2013/12/02 14:28:54, eugenis wrote:
> This does not look right. In case of failure GetFileSize exits without setting
> file size, and this code is testing an uninitialized stack location.
> 
> This is the cause of this failure:
>
http://build.chromium.org/p/chromium.fyi/builders/Android%2520Asan%2520Builde...

Powered by Google App Engine
This is Rietveld 408576698