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

Issue 2595753002: Decode url in save package download (Closed)

Created:
4 years ago by xingliu
Modified:
3 years, 11 months ago
CC:
asanka, chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Decode url in save package download. Save package does not decode the url when the web content has no title. Also add some unit tests for special characters. BUG=654591 Review-Url: https://codereview.chromium.org/2595753002 Cr-Commit-Position: refs/heads/master@{#442710} Committed: https://chromium.googlesource.com/chromium/src/+/0d4d0fd0973238c92bbd629960eeed5b3481b48c

Patch Set 1 #

Patch Set 2 : Just decode the url, and new unit test. #

Total comments: 6

Patch Set 3 : Change back to use net::GenerateFileName #

Patch Set 4 : Removes unused include. #

Patch Set 5 : Use AsUtf8Unsafe to fix an issue on windows. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -12 lines) Patch
M content/browser/download/save_package.cc View 1 2 3 4 1 chunk +10 lines, -12 lines 1 comment Download
M content/browser/download/save_package_unittest.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (32 generated)
xingliu
Fix the ✰✰✰.txt bug..
4 years ago (2016-12-21 00:32:59 UTC) #5
xingliu
asanka@chromium.org: Please help take a look.
4 years ago (2016-12-21 00:38:13 UTC) #8
asanka
https://codereview.chromium.org/2595753002/diff/20001/content/browser/download/save_package.cc File content/browser/download/save_package.cc (right): https://codereview.chromium.org/2595753002/diff/20001/content/browser/download/save_package.cc#newcode1267 content/browser/download/save_package.cc:1267: page_url.path(), "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); Can you check if GURL::ExtractFilename() ...
4 years ago (2016-12-22 19:38:43 UTC) #20
xingliu
Thanks for the feedback. Change to use net::GenerateFileName, and try to decode punycode if it ...
4 years ago (2016-12-22 22:18:32 UTC) #23
asanka
lgtm For future reference, it's okay to ping on IM or somesuch after a day ...
3 years, 11 months ago (2017-01-10 19:42:46 UTC) #30
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/2595753002/80001
3 years, 11 months ago (2017-01-10 21:45:36 UTC) #36
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 22:25:36 UTC) #39
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/0d4d0fd0973238c92bbd629960ee...

Powered by Google App Engine
This is Rietveld 408576698