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

Issue 767163005: Add AffiliationFetcher to fetch authoritative affiliation information regarding facets. (Closed)

Created:
6 years ago by engedy
Modified:
6 years ago
CC:
gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add AffiliationFetcher to fetch authoritative affiliation information regarding facets. This uses the utilities introduced in https://codereview.chromium.org/771173002/. BUG=437865 Committed: https://crrev.com/7411df512d4b3691b4753e65622fc46a50d50b07 Cr-Commit-Position: refs/heads/master@{#308354}

Patch Set 1 #

Total comments: 42

Patch Set 2 : Factored out utility methods into a separate CL. #

Patch Set 3 : Addressed comments. #

Patch Set 4 : Addressed comments. #

Patch Set 5 : Minor improvements to phrasing. #

Total comments: 24

Patch Set 6 : Addressed comments from rsleevi@, rdsmith@, and gcasto@. #

Total comments: 12

Patch Set 7 : Addressed nits from gcasto@ and rdsmith@. #

Total comments: 6

Patch Set 8 : Address final set of comments from rsleevi@. #

Patch Set 9 : Address final set of comments from rsleevi@. #

Patch Set 10 : Minor tweaks to comments. #

Patch Set 11 : Rebase on ToT, fix GN format. #

Patch Set 12 : Fix GN build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+688 lines, -0 lines) Patch
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +18 lines, -0 lines 0 comments Download
M components/password_manager/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +13 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_api.proto View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_fetcher.h View 1 2 3 4 5 6 7 8 9 1 chunk +90 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_fetcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +164 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_fetcher_delegate.h View 1 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_fetcher_unittest.cc View 1 2 3 4 5 6 1 chunk +328 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
engedy
Mike, please take a look. This is the first of a series of CLs. Apologies ...
6 years ago (2014-12-01 18:26:06 UTC) #2
Mike West
https://codereview.chromium.org/767163005/diff/1/components/password_manager/core/browser/affiliation_fetcher.cc File components/password_manager/core/browser/affiliation_fetcher.cc (right): https://codereview.chromium.org/767163005/diff/1/components/password_manager/core/browser/affiliation_fetcher.cc#newcode36 components/password_manager/core/browser/affiliation_fetcher.cc:36: const char kResponseEquivalenceClassMembersKey[] = "facet"; Hrm. You're only using ...
6 years ago (2014-12-02 14:32:43 UTC) #3
engedy
https://codereview.chromium.org/767163005/diff/1/components/password_manager/core/browser/affiliation_fetcher.cc File components/password_manager/core/browser/affiliation_fetcher.cc (right): https://codereview.chromium.org/767163005/diff/1/components/password_manager/core/browser/affiliation_fetcher.cc#newcode36 components/password_manager/core/browser/affiliation_fetcher.cc:36: const char kResponseEquivalenceClassMembersKey[] = "facet"; On 2014/12/02 14:32:42, Mike ...
6 years ago (2014-12-02 18:33:56 UTC) #5
Mike West
LGTM % nits, thanks for going another round. https://codereview.chromium.org/767163005/diff/1/components/password_manager/core/browser/affiliation_fetcher.cc File components/password_manager/core/browser/affiliation_fetcher.cc (right): https://codereview.chromium.org/767163005/diff/1/components/password_manager/core/browser/affiliation_fetcher.cc#newcode137 components/password_manager/core/browser/affiliation_fetcher.cc:137: return ...
6 years ago (2014-12-03 10:44:43 UTC) #6
engedy
https://codereview.chromium.org/767163005/diff/1/components/password_manager/core/browser/affiliation_fetcher.cc File components/password_manager/core/browser/affiliation_fetcher.cc (right): https://codereview.chromium.org/767163005/diff/1/components/password_manager/core/browser/affiliation_fetcher.cc#newcode137 components/password_manager/core/browser/affiliation_fetcher.cc:137: return false; On 2014/12/03 10:44:43, Mike West wrote: > ...
6 years ago (2014-12-09 10:33:45 UTC) #7
Mike West
Please change the CL description to point to the previous patch (and to drop the ...
6 years ago (2014-12-09 20:17:33 UTC) #8
engedy
@Ryan, could you please sign off on our adding the following dependencies: net/http/http_status_code.h net/url_request
6 years ago (2014-12-10 17:18:33 UTC) #10
Ryan Sleevi
I've left some comments. Overall, my understanding of your use of URLFetcher is safe, although ...
6 years ago (2014-12-10 19:44:36 UTC) #12
Randy Smith (Not in Mondays)
LGTM with below changes. https://codereview.chromium.org/767163005/diff/100001/components/password_manager/core/browser/affiliation_fetcher.cc File components/password_manager/core/browser/affiliation_fetcher.cc (right): https://codereview.chromium.org/767163005/diff/100001/components/password_manager/core/browser/affiliation_fetcher.cc#newcode215 components/password_manager/core/browser/affiliation_fetcher.cc:215: if (fetcher_->GetResponseCode() == net::HTTP_OK) { ...
6 years ago (2014-12-10 22:13:24 UTC) #13
Garrett Casto
Drive by. https://codereview.chromium.org/767163005/diff/100001/components/password_manager/core/browser/affiliation_fetcher.cc File components/password_manager/core/browser/affiliation_fetcher.cc (right): https://codereview.chromium.org/767163005/diff/100001/components/password_manager/core/browser/affiliation_fetcher.cc#newcode110 components/password_manager/core/browser/affiliation_fetcher.cc:110: base::JSONReader::Read(response_json)); On 2014/12/10 19:44:36, Ryan Sleevi wrote: ...
6 years ago (2014-12-11 08:18:39 UTC) #15
engedy
@Ryan, @Randy, @Garrett: Thank you all for the thorough review! Please take another look. https://codereview.chromium.org/767163005/diff/100001/components/password_manager/core/browser/affiliation_fetcher.cc ...
6 years ago (2014-12-11 20:49:24 UTC) #16
Randy Smith (Not in Mondays)
https://codereview.chromium.org/767163005/diff/100001/components/password_manager/core/browser/affiliation_fetcher.h File components/password_manager/core/browser/affiliation_fetcher.h (right): https://codereview.chromium.org/767163005/diff/100001/components/password_manager/core/browser/affiliation_fetcher.h#newcode28 components/password_manager/core/browser/affiliation_fetcher.h:28: // An instance is good for exactly one fetch, ...
6 years ago (2014-12-11 20:54:35 UTC) #17
Garrett Casto
lgtm https://codereview.chromium.org/767163005/diff/120001/components/password_manager/core/browser/affiliation_fetcher.cc File components/password_manager/core/browser/affiliation_fetcher.cc (right): https://codereview.chromium.org/767163005/diff/120001/components/password_manager/core/browser/affiliation_fetcher.cc#newcode72 components/password_manager/core/browser/affiliation_fetcher.cc:72: bool success = lookup_request.SerializeToString(&serialized_request); nit: You can just ...
6 years ago (2014-12-12 07:53:02 UTC) #18
engedy
https://codereview.chromium.org/767163005/diff/100001/components/password_manager/core/browser/affiliation_fetcher.h File components/password_manager/core/browser/affiliation_fetcher.h (right): https://codereview.chromium.org/767163005/diff/100001/components/password_manager/core/browser/affiliation_fetcher.h#newcode28 components/password_manager/core/browser/affiliation_fetcher.h:28: // An instance is good for exactly one fetch, ...
6 years ago (2014-12-12 14:06:13 UTC) #19
Garrett Casto
lgtm https://codereview.chromium.org/767163005/diff/120001/components/password_manager/core/browser/affiliation_fetcher.cc File components/password_manager/core/browser/affiliation_fetcher.cc (right): https://codereview.chromium.org/767163005/diff/120001/components/password_manager/core/browser/affiliation_fetcher.cc#newcode72 components/password_manager/core/browser/affiliation_fetcher.cc:72: bool success = lookup_request.SerializeToString(&serialized_request); On 2014/12/12 14:06:13, engedy ...
6 years ago (2014-12-12 18:23:45 UTC) #20
Ryan Sleevi
LGTM % nits https://codereview.chromium.org/767163005/diff/140001/components/password_manager/core/browser/affiliation_fetcher.cc File components/password_manager/core/browser/affiliation_fetcher.cc (right): https://codereview.chromium.org/767163005/diff/140001/components/password_manager/core/browser/affiliation_fetcher.cc#newcode30 components/password_manager/core/browser/affiliation_fetcher.cc:30: DCHECK(uri.is_valid()); BUG/DANGER: Whenever using debugging macros ...
6 years ago (2014-12-12 23:02:19 UTC) #21
engedy
https://codereview.chromium.org/767163005/diff/140001/components/password_manager/core/browser/affiliation_fetcher.cc File components/password_manager/core/browser/affiliation_fetcher.cc (right): https://codereview.chromium.org/767163005/diff/140001/components/password_manager/core/browser/affiliation_fetcher.cc#newcode30 components/password_manager/core/browser/affiliation_fetcher.cc:30: DCHECK(uri.is_valid()); On 2014/12/12 23:02:19, Ryan Sleevi wrote: > BUG/DANGER: ...
6 years ago (2014-12-15 13:54:51 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/767163005/200001
6 years ago (2014-12-15 13:55:10 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/36555) win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/37698)
6 years ago (2014-12-15 13:57:51 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/767163005/240001
6 years ago (2014-12-15 14:50:08 UTC) #28
commit-bot: I haz the power
Committed patchset #12 (id:240001)
6 years ago (2014-12-15 15:41:53 UTC) #29
commit-bot: I haz the power
6 years ago (2014-12-15 15:42:44 UTC) #30
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/7411df512d4b3691b4753e65622fc46a50d50b07
Cr-Commit-Position: refs/heads/master@{#308354}

Powered by Google App Engine
This is Rietveld 408576698