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

Issue 603683005: base::CopyFile can copy *from* Android's content scheme. (Closed)

Created:
6 years, 3 months ago by cmumford
Modified:
6 years, 1 month ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

base::CopyFile can copy *from* Android's content scheme. Some other select file functions can deal with Android's content scheme (i.e. content://...), but not CopyFile. BUG=416424 Committed: https://crrev.com/620ace8dc5084fd162a98b90ee78846980879e6f Cr-Commit-Position: refs/heads/master@{#304446}

Patch Set 1 #

Patch Set 2 : Modified CopyFile test to assert inability to copy to parent dir. #

Total comments: 1

Patch Set 3 : Remove assertion that CopyFileUnsafe will always work. #

Patch Set 4 : base::internal::CopyFileUnsafe -> base::CopyFile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -97 lines) Patch
M base/files/file_util.h View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M base/files/file_util.cc View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M base/files/file_util_mac.mm View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M base/files/file_util_posix.cc View 1 2 3 3 chunks +46 lines, -46 lines 0 comments Download
M base/files/file_util_unittest.cc View 1 2 3 1 chunk +5 lines, -6 lines 0 comments Download
M base/files/file_util_win.cc View 1 2 3 3 chunks +32 lines, -30 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
cmumford
rvargas for review, jsbell for FYI I'm not 100% sure this is the correct way ...
6 years, 3 months ago (2014-09-25 00:16:35 UTC) #2
jsbell
Thanks for the FYI. I'd keep the file permissions the same; I would avoid introducing ...
6 years, 2 months ago (2014-09-25 17:24:15 UTC) #3
rvargas (doing something else)
I think it is reasonable to have base methods that understand special path encodings for ...
6 years, 2 months ago (2014-09-25 20:28:39 UTC) #4
cmumford
On 2014/09/25 20:28:39, rvargas wrote: > I think it is reasonable to have base methods ...
6 years, 2 months ago (2014-09-26 16:55:54 UTC) #5
rvargas (doing something else)
On 2014/09/26 16:55:54, cmumford wrote: > On 2014/09/25 20:28:39, rvargas wrote: > > I think ...
6 years, 2 months ago (2014-09-26 19:24:57 UTC) #6
cmumford
On 2014/09/26 19:24:57, rvargas wrote: > On 2014/09/26 16:55:54, cmumford wrote: > > On 2014/09/25 ...
6 years, 2 months ago (2014-09-30 20:06:44 UTC) #7
cmumford
On 2014/09/30 20:06:44, cmumford wrote: > On 2014/09/26 19:24:57, rvargas wrote: > > On 2014/09/26 ...
6 years, 2 months ago (2014-09-30 20:19:35 UTC) #9
brettw
lgtm
6 years, 2 months ago (2014-10-01 17:36:59 UTC) #10
jsbell
ping on this - cmumford, are you waiting on anyone? Would be nice to have ...
6 years, 1 month ago (2014-10-27 23:15:14 UTC) #11
cmumford
On 2014/10/27 23:15:14, jsbell (TPAC Oct 27-28) wrote: > ping on this - cmumford, are ...
6 years, 1 month ago (2014-10-27 23:19:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/603683005/1
6 years, 1 month ago (2014-10-27 23:24:15 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel/builds/3809)
6 years, 1 month ago (2014-10-28 01:56:07 UTC) #16
cmumford
On 2014/10/28 01:56:07, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-10-28 16:56:00 UTC) #17
brettw
On 2014/10/28 16:56:00, cmumford wrote: > On 2014/10/28 01:56:07, I haz the power (commit-bot) wrote: ...
6 years, 1 month ago (2014-10-29 17:13:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/603683005/20001
6 years, 1 month ago (2014-11-11 16:02:51 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/32314)
6 years, 1 month ago (2014-11-11 16:31:20 UTC) #22
cmumford
On 2014/11/11 16:31:20, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-11-11 23:08:27 UTC) #23
rvargas (doing something else)
https://codereview.chromium.org/603683005/diff/20001/base/files/file_util_unittest.cc File base/files/file_util_unittest.cc (right): https://codereview.chromium.org/603683005/diff/20001/base/files/file_util_unittest.cc#newcode1479 base/files/file_util_unittest.cc:1479: ASSERT_FALSE(internal::CopyFileUnsafe(file_name_from, dest_file2)); Aha!. So the code was already there ...
6 years, 1 month ago (2014-11-11 23:40:50 UTC) #24
cmumford
I removed CopyFileUnsafe as rvargas suggested. PTAL.
6 years, 1 month ago (2014-11-13 21:27:41 UTC) #25
rvargas (doing something else)
PS4 lgtm
6 years, 1 month ago (2014-11-14 00:23:10 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/603683005/60001
6 years, 1 month ago (2014-11-17 17:55:23 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-17 18:58:33 UTC) #29
commit-bot: I haz the power
6 years, 1 month ago (2014-11-17 18:59:06 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/620ace8dc5084fd162a98b90ee78846980879e6f
Cr-Commit-Position: refs/heads/master@{#304446}

Powered by Google App Engine
This is Rietveld 408576698