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

Issue 3018011: POSIX: treat multiple extensions like .tar.gz as a single extension. (Closed)

Created:
10 years, 5 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews, ben+cc_chromium.org, Paul Godavari, Paweł Hajdan Jr., brettw-cc_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Treat multiple extensions like .tar.gz as a single extension. The logic is taken from firefox. BUG=48346 TEST=unit tests; downloading the same .tar.gz file multiple times (see bug) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53844

Patch Set 1 #

Patch Set 2 : match firefox #

Patch Set 3 : update comment #

Total comments: 34

Patch Set 4 : Mark comments #

Patch Set 5 : review comments #

Patch Set 6 : whitespace #

Patch Set 7 : remove naming change #

Total comments: 12

Patch Set 8 : more review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -67 lines) Patch
M base/file_path.cc View 1 2 3 4 5 6 7 15 chunks +96 lines, -56 lines 0 comments Download
M base/file_path_unittest.cc View 1 2 3 4 5 6 7 4 chunks +43 lines, -4 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/filter.cc View 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Evan Stade
10 years, 5 months ago (2010-07-19 21:30:30 UTC) #1
Mark Mentovai
What will this do with subversion-1.6.12.zip?
10 years, 5 months ago (2010-07-19 21:32:57 UTC) #2
Evan Stade
On 2010/07/19 21:32:57, Mark Mentovai wrote: > What will this do with subversion-1.6.12.zip? the wrong ...
10 years, 5 months ago (2010-07-19 21:50:24 UTC) #3
Mark Mentovai
I think that filenames like subversion-1.6.12.zip are common enough that we should do something to ...
10 years, 5 months ago (2010-07-19 22:01:45 UTC) #4
Evan Stade
ok. Here is the firefox code for reference: /** * Separates the base name from ...
10 years, 5 months ago (2010-07-20 00:58:19 UTC) #5
Evan Stade
updated. I applied the logic to Windows as well since I made the logic more ...
10 years, 5 months ago (2010-07-20 01:26:43 UTC) #6
Mark Mentovai
Tryserver: check on net_unittests FilterTest.UnsupportedMimeGzip.
10 years, 5 months ago (2010-07-20 04:30:52 UTC) #7
Mark Mentovai
Also see previous comment about net_unittests failures detected by the trybot. http://codereview.chromium.org/3018011/diff/10001/9002 File base/file_path.cc (right): ...
10 years, 5 months ago (2010-07-20 17:16:59 UTC) #8
vandebo (ex-Chrome)
http://codereview.chromium.org/3018011/diff/10001/9006 File chrome/browser/download/download_util.cc (right): http://codereview.chromium.org/3018011/diff/10001/9006#newcode494 chrome/browser/download/download_util.cc:494: *path = path->InsertBeforeExtensionASCII(StringPrintf("(%d)", number)); On 2010/07/20 17:17:00, Mark Mentovai ...
10 years, 5 months ago (2010-07-20 17:32:11 UTC) #9
Evan Stade
http://codereview.chromium.org/3018011/diff/10001/9002 File base/file_path.cc (right): http://codereview.chromium.org/3018011/diff/10001/9002#newcode321 base/file_path.cc:321: bool is_common_double_extension = On 2010/07/20 17:17:00, Mark Mentovai wrote: ...
10 years, 5 months ago (2010-07-20 20:09:34 UTC) #10
Evan Stade
On 2010/07/20 04:30:52, Mark Mentovai wrote: > Tryserver: check on net_unittests FilterTest.UnsupportedMimeGzip. saw that but ...
10 years, 5 months ago (2010-07-20 20:11:47 UTC) #11
Mark Mentovai
http://codereview.chromium.org/3018011/diff/10001/9002 File base/file_path.cc (right): http://codereview.chromium.org/3018011/diff/10001/9002#newcode357 base/file_path.cc:357: return DirName().Append(BaseName().path_.substr(0, dot)); Evan Stade wrote: > because dot ...
10 years, 5 months ago (2010-07-20 20:18:54 UTC) #12
Evan Stade
http://codereview.chromium.org/3018011/diff/10001/9002 File base/file_path.cc (right): http://codereview.chromium.org/3018011/diff/10001/9002#newcode357 base/file_path.cc:357: return DirName().Append(BaseName().path_.substr(0, dot)); On 2010/07/20 20:18:55, Mark Mentovai wrote: ...
10 years, 5 months ago (2010-07-24 01:24:16 UTC) #13
Mark Mentovai
LGTM with these small changes. One question, too. http://codereview.chromium.org/3018011/diff/30001/11002 File base/file_path.cc (right): http://codereview.chromium.org/3018011/diff/30001/11002#newcode39 base/file_path.cc:39: typedef ...
10 years, 5 months ago (2010-07-24 04:53:36 UTC) #14
Evan Stade
http://codereview.chromium.org/3018011/diff/30001/11002 File base/file_path.cc (right): http://codereview.chromium.org/3018011/diff/30001/11002#newcode39 base/file_path.cc:39: typedef FilePath::StringType StringType; On 2010/07/24 04:53:36, Mark Mentovai wrote: ...
10 years, 5 months ago (2010-07-27 03:44:27 UTC) #15
Mark Mentovai
10 years, 5 months ago (2010-07-27 03:50:36 UTC) #16
LGTM. Let’s do it.

Powered by Google App Engine
This is Rietveld 408576698