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

Issue 2136673002: [Downloads] Path collision check should be case insensitive. (Closed)

Created:
4 years, 5 months ago by asanka
Modified:
4 years, 5 months ago
Reviewers:
svaldez
CC:
asanka, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Downloads] Path collision check should be case insensitive. If there are two on-going downloads with suggested paths that only differ by case, they should be considered in conflict. Thus the download that started later should end up with a uniquified path. Otherwise the files may overwrite each other during the final rename. R=svaldez@chromium.org BUG=619516 Committed: https://crrev.com/3f4e2aada67ac99063cc7bddf88dddf6ed93e9c0 Cr-Commit-Position: refs/heads/master@{#404711}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -9 lines) Patch
M chrome/browser/download/download_path_reservation_tracker.cc View 5 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/download/download_path_reservation_tracker_unittest.cc View 2 chunks +35 lines, -1 line 2 comments Download

Messages

Total messages: 13 (4 generated)
asanka
PTAL?
4 years, 5 months ago (2016-07-08 21:30:01 UTC) #1
svaldez
lgtm https://codereview.chromium.org/2136673002/diff/1/chrome/browser/download/download_path_reservation_tracker_unittest.cc File chrome/browser/download/download_path_reservation_tracker_unittest.cc (right): https://codereview.chromium.org/2136673002/diff/1/chrome/browser/download/download_path_reservation_tracker_unittest.cc#newcode414 chrome/browser/download/download_path_reservation_tracker_unittest.cc:414: EXPECT_EQ(GetPathInDownloadsDirectory(FILE_PATH_LITERAL("Foo (1).txt")), Should the original path also be ...
4 years, 5 months ago (2016-07-11 15:40:52 UTC) #2
asanka
Thanks! https://codereview.chromium.org/2136673002/diff/1/chrome/browser/download/download_path_reservation_tracker_unittest.cc File chrome/browser/download/download_path_reservation_tracker_unittest.cc (right): https://codereview.chromium.org/2136673002/diff/1/chrome/browser/download/download_path_reservation_tracker_unittest.cc#newcode414 chrome/browser/download/download_path_reservation_tracker_unittest.cc:414: EXPECT_EQ(GetPathInDownloadsDirectory(FILE_PATH_LITERAL("Foo (1).txt")), On 2016/07/11 at 15:40:52, svaldez wrote: ...
4 years, 5 months ago (2016-07-11 16:27:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2136673002/1
4 years, 5 months ago (2016-07-11 16:28:07 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/253095)
4 years, 5 months ago (2016-07-11 17:51:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2136673002/1
4 years, 5 months ago (2016-07-11 18:39:36 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-11 19:54:26 UTC) #10
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-11 19:54:38 UTC) #11
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 19:56:56 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/3f4e2aada67ac99063cc7bddf88dddf6ed93e9c0
Cr-Commit-Position: refs/heads/master@{#404711}

Powered by Google App Engine
This is Rietveld 408576698