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

Issue 1275002: Canonicalize the url based on Section 6.1 Safe Browsing Spec. Also fix the un... (Closed)

Created:
10 years, 9 months ago by inferno
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., Paul Godavari, ben+cc_chromium.org, Chris Evans, gcasto (DO NOT USE)
Visibility:
Public.

Description

Canonicalize the url based on Section 6.1 Safe Browsing Spec. BUG=7713 TEST=SafeBrowsingUtilTest.CanonicalizeUrl Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43100

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 7

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 39

Patch Set 12 : '' #

Total comments: 6

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -6 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_util.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +147 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +201 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
inferno
Please review this patch. Please note that i have added unittests for everything mentioned in ...
10 years, 9 months ago (2010-03-24 17:45:27 UTC) #1
inferno
adding chris, eric kay on the cc list.
10 years, 9 months ago (2010-03-24 17:58:48 UTC) #2
inferno
minor tweaks - removed extra lines, fixed license file, added if for chars_written to prevent ...
10 years, 9 months ago (2010-03-24 18:17:00 UTC) #3
eroman
Some initial comments. Will look at the un-escaping logic next. http://codereview.chromium.org/1275002/diff/1/2 File chrome/browser/safe_browsing/safe_browsing_service.cc (right): http://codereview.chromium.org/1275002/diff/1/2#newcode72 ...
10 years, 9 months ago (2010-03-24 18:19:30 UTC) #4
eroman
Summarizing our-person chat: We can continue passing around GURLs throughout, and only do the safe-browsing ...
10 years, 9 months ago (2010-03-24 18:34:25 UTC) #5
inferno
please wait for review till next patch. i will fix all the things as mentioned ...
10 years, 9 months ago (2010-03-24 18:53:32 UTC) #6
Erik does not do reviews
Is there something in particular you'd like me to look at? I'm happy to defer ...
10 years, 9 months ago (2010-03-24 20:45:14 UTC) #7
inferno
@erickay - nothing particular :), just wanted to keep you informed about this change. i ...
10 years, 9 months ago (2010-03-24 21:29:38 UTC) #8
Erik does not do reviews
I do have a couple of comments after all: - Since this has the potential ...
10 years, 9 months ago (2010-03-24 22:06:51 UTC) #9
inferno
Thanks @Erikkay for the comments. I will seek Eroman's help to see histograms after he ...
10 years, 9 months ago (2010-03-24 22:35:16 UTC) #10
eroman
Note that I am going to be gone the rest of this week (thu-fri). Hopefully ...
10 years, 9 months ago (2010-03-24 23:03:56 UTC) #11
eroman
http://codereview.chromium.org/1275002/diff/23001/24002 File chrome/browser/safe_browsing/safe_browsing_util.cc (right): http://codereview.chromium.org/1275002/diff/23001/24002#newcode198 chrome/browser/safe_browsing/safe_browsing_util.cc:198: std::string CanonicalizeUrl(const GURL& url) { How about making the ...
10 years, 9 months ago (2010-03-24 23:09:38 UTC) #12
inferno
Eric, i did make all the suggested changes, please review. hope we can complete before ...
10 years, 9 months ago (2010-03-25 00:37:05 UTC) #13
eroman
http://codereview.chromium.org/1275002/diff/32002/36002 File chrome/browser/safe_browsing/safe_browsing_util.cc (right): http://codereview.chromium.org/1275002/diff/32002/36002#newcode173 chrome/browser/safe_browsing/safe_browsing_util.cc:173: UnescapeRule::NORMAL | UnescapeRule::SPACES | style-nit: continued lines indent by ...
10 years, 9 months ago (2010-03-25 02:26:15 UTC) #14
inferno
all style nits corrected. canonicalized_hostname does not include :port. spec does not mention anything about ...
10 years, 9 months ago (2010-03-25 02:46:39 UTC) #15
inferno
I am making the changes after thinking more about his and based on the furthur ...
10 years, 9 months ago (2010-03-25 07:27:17 UTC) #16
gcasto (DO NOT USE)
Adding Brian, who is our canonicalization expert. On Thu, Mar 25, 2010 at 12:27 AM, ...
10 years, 9 months ago (2010-03-25 21:28:27 UTC) #17
inferno
looks like you forgot to cc brian, can you please add him. the issue is ...
10 years, 9 months ago (2010-03-25 21:33:55 UTC) #18
gcasto (DO NOT USE)
Actually adding Brian. On Thu, Mar 25, 2010 at 2:33 PM, <inferno@chromium.org> wrote: > looks ...
10 years, 9 months ago (2010-03-25 22:59:47 UTC) #19
inferno
Adding Brian
10 years, 9 months ago (2010-03-26 01:42:53 UTC) #20
inferno
Thank you Brian for discussing this. I got your point that we need to match ...
10 years, 9 months ago (2010-03-26 20:48:48 UTC) #21
eroman
http://codereview.chromium.org/1275002/diff/55001/56002 File chrome/browser/safe_browsing/safe_browsing_util.cc (right): http://codereview.chromium.org/1275002/diff/55001/56002#newcode175 chrome/browser/safe_browsing/safe_browsing_util.cc:175: } while (unescaped_str.compare(old_unescaped_str) && ++loop_var <= rather than compare, ...
10 years, 9 months ago (2010-03-30 01:11:22 UTC) #22
inferno
Eric, thanks for your insightful review. i have made the changes. a few were left ...
10 years, 8 months ago (2010-03-30 15:20:21 UTC) #23
eroman
LGTM! http://codereview.chromium.org/1275002/diff/55001/56002 File chrome/browser/safe_browsing/safe_browsing_util.cc (right): http://codereview.chromium.org/1275002/diff/55001/56002#newcode317 chrome/browser/safe_browsing/safe_browsing_util.cc:317: const std::string host = canon_host; // const sidesteps ...
10 years, 8 months ago (2010-03-30 17:22:45 UTC) #24
inferno
Thanks Eric. have made all code changes and committed http://codereview.chromium.org/1275002/diff/62001/63002 File chrome/browser/safe_browsing/safe_browsing_util.cc (right): http://codereview.chromium.org/1275002/diff/62001/63002#newcode198 chrome/browser/safe_browsing/safe_browsing_util.cc:198: ...
10 years, 8 months ago (2010-03-30 17:40:11 UTC) #25
bryner (do not use)
Correctness-wise this looks good to me. Just one question: are IDN hostnames already converted to ...
10 years, 8 months ago (2010-03-30 18:44:59 UTC) #26
inferno
On 2010/03/30 18:44:59, bryner wrote: > Correctness-wise this looks good to me. Just one question: ...
10 years, 8 months ago (2010-03-30 18:46:43 UTC) #27
inferno
10 years, 8 months ago (2010-03-30 18:47:39 UTC) #28
On 2010/03/30 18:46:43, inferno wrote:
> On 2010/03/30 18:44:59, bryner wrote:
> > Correctness-wise this looks good to me.  Just one question: are IDN
hostnames
> > already converted to punycode at this point this is called?
> 
> I believe GURL automatically does it and we can go from there.

sorry exclude "can" from previous comment.

Powered by Google App Engine
This is Rietveld 408576698