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

Issue 2498113003: Add verification that google URL has a valid TLD. (Closed)

Created:
4 years, 1 month ago by Maria
Modified:
3 years, 11 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, Ted C
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add verification that google URL has a valid TLD. There are a number of privacy-sensitive checks that we make using this function. In order to ensure that the URLs really belong to Google, add a check that TLD has been registered by Google. BUG=665624 Committed: https://crrev.com/a27191167e1a0c71c19b3581894384ae07427806 Cr-Commit-Position: refs/heads/master@{#441421}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Refactor to not compute tld length twice. #

Patch Set 3 : Change implementation to set. #

Total comments: 9

Patch Set 4 : Address comments #

Patch Set 5 : Use CR_DEFINE_STATIC_LOCAL. #

Patch Set 6 : Move the list of Google TLDs into a separate header file. #

Total comments: 2

Patch Set 7 : Remove a blank line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -6 lines) Patch
M components/google/core/browser/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A components/google/core/browser/google_tld_list.h View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
M components/google/core/browser/google_util.cc View 1 2 3 4 5 6 5 chunks +19 lines, -4 lines 0 comments Download
M components/google/core/browser/google_util_unittest.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
Maria
4 years, 1 month ago (2016-11-15 21:50:49 UTC) #2
Peter Kasting
Is there a public bug rather than an internal one for this? Chromium doesn't generally ...
4 years, 1 month ago (2016-11-15 22:11:57 UTC) #3
Maria
On 2016/11/15 22:11:57, Peter Kasting wrote: > Is there a public bug rather than an ...
4 years, 1 month ago (2016-11-15 22:57:08 UTC) #4
Maria
Made changes / asking a few questions for technical comments. https://codereview.chromium.org/2498113003/diff/1/components/google/core/browser/google_util.cc File components/google/core/browser/google_util.cc (right): https://codereview.chromium.org/2498113003/diff/1/components/google/core/browser/google_util.cc#newcode42 ...
4 years, 1 month ago (2016-11-15 23:36:31 UTC) #6
Peter Kasting
On 2016/11/15 22:57:08, Maria wrote: > What I'd like to understand is who are the ...
4 years, 1 month ago (2016-11-15 23:46:50 UTC) #7
Maria
Hey, Peter, I updated this to change implementation to set, let me know if the ...
4 years ago (2016-12-15 01:00:15 UTC) #8
Peter Kasting
Implementation LGTM with a couple comments. In particular, using a set seems fine. I don't ...
4 years ago (2016-12-15 01:22:00 UTC) #9
Maria
https://codereview.chromium.org/2498113003/diff/40001/components/google/core/browser/google_util.cc File components/google/core/browser/google_util.cc (right): https://codereview.chromium.org/2498113003/diff/40001/components/google/core/browser/google_util.cc#newcode55 components/google/core/browser/google_util.cc:55: On 2016/12/15 01:21:59, Peter Kasting wrote: > Nit: Don't ...
4 years ago (2016-12-15 17:56:33 UTC) #10
Peter Kasting
I realized I didn't think much about whether a different kind of set (unordered_set, or ...
4 years ago (2016-12-15 19:00:25 UTC) #11
Maria
On 2016/12/15 19:00:25, Peter Kasting wrote: > I realized I didn't think much about whether ...
4 years ago (2016-12-15 20:01:40 UTC) #12
Maria
Made the change you suggested in the design doc, PTAL
4 years ago (2016-12-16 01:29:38 UTC) #13
Peter Kasting
Yup, LGTM https://codereview.chromium.org/2498113003/diff/100001/components/google/core/browser/google_util.cc File components/google/core/browser/google_util.cc (right): https://codereview.chromium.org/2498113003/diff/100001/components/google/core/browser/google_util.cc#newcode109 components/google/core/browser/google_util.cc:109: Nit: Blank line here now probably unnecessary? ...
4 years ago (2016-12-16 01:35:59 UTC) #14
Maria
https://codereview.chromium.org/2498113003/diff/100001/components/google/core/browser/google_util.cc File components/google/core/browser/google_util.cc (right): https://codereview.chromium.org/2498113003/diff/100001/components/google/core/browser/google_util.cc#newcode109 components/google/core/browser/google_util.cc:109: On 2016/12/16 01:35:58, Peter Kasting wrote: > Nit: Blank ...
3 years, 11 months ago (2017-01-04 17:58:52 UTC) #15
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/2498113003/120001
3 years, 11 months ago (2017-01-04 17:59:16 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
3 years, 11 months ago (2017-01-04 19:04:01 UTC) #21
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 19:06:45 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a27191167e1a0c71c19b3581894384ae07427806
Cr-Commit-Position: refs/heads/master@{#441421}

Powered by Google App Engine
This is Rietveld 408576698