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

Issue 868253005: AffiliationBackend: Implement the better part of on-demand fetching. (Closed)

Created:
5 years, 10 months ago by engedy
Modified:
5 years, 10 months ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org, vabr (Chromium)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AffiliationBackend: Implement the better part of on-demand fetching. This CL implements AffiliationBackend::GetAffiliation(), including support for caching, but without support for some error scenarios. The missing parts, viz. Prefetch() functionality and error handling will be added later to reduce CL size. Given that the code is not yet exercised outside of tests, this should not create any problems. BUG=437865 TBR=gcasto@chromium.org Committed: https://crrev.com/45920ca9cb490d8f1969a3d9bc543a457f94ec6b Cr-Commit-Position: refs/heads/master@{#314320}

Patch Set 1 #

Patch Set 2 : Tidied up. #

Patch Set 3 : Almost ready for primetime. #

Patch Set 4 : Ready for review. #

Patch Set 5 : Rebase on ToT. #

Patch Set 6 : Missing override. #

Total comments: 32

Patch Set 7 : Make the Backend actually get destroyed in the test. #

Patch Set 8 : Addressed comments from mkwst@. #

Total comments: 8

Patch Set 9 : Addressed comments from gcasto@, prettified tests. #

Patch Set 10 : Tidy up NULL time related issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1118 lines, -29 lines) Patch
M components/components_tests.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager.gypi View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/affiliation_backend.h View 1 2 3 4 5 6 7 8 9 1 chunk +93 lines, -15 lines 0 comments Download
M components/password_manager/core/browser/affiliation_backend.cc View 1 2 3 4 5 6 7 8 9 1 chunk +290 lines, -5 lines 0 comments Download
A components/password_manager/core/browser/affiliation_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +318 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/affiliation_service.h View 2 chunks +8 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/affiliation_service.cc View 1 2 chunks +10 lines, -4 lines 0 comments Download
A components/password_manager/core/browser/affiliation_service_unittest.cc View 1 2 3 4 5 6 1 chunk +154 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/affiliation_utils.h View 1 2 3 chunks +22 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/affiliation_utils.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/fake_affiliation_api.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/fake_affiliation_api.cc View 1 2 3 4 5 6 7 8 1 chunk +69 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/fake_affiliation_fetcher.h View 1 chunk +7 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/fake_affiliation_fetcher.cc View 1 chunk +6 lines, -1 line 0 comments Download
A components/password_manager/core/browser/mock_affiliation_consumer.h View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/mock_affiliation_consumer.cc View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
engedy
@Garrett, please take a look. I have tried to reduce the CL size as much ...
5 years, 10 months ago (2015-01-30 19:35:30 UTC) #2
engedy
Oh, the leak. Dunno what I was expecting there... I will fix that.
5 years, 10 months ago (2015-01-30 22:42:40 UTC) #3
engedy
@Mike, given the size of the CL, Garrett suggested that a second pair of eyes ...
5 years, 10 months ago (2015-02-02 09:34:28 UTC) #5
Mike West
I'll look at the rest in a moment, but first I'll note that the ASAN ...
5 years, 10 months ago (2015-02-02 13:22:28 UTC) #6
engedy
On 2015/02/02 13:22:28, Mike West wrote: > I'll look at the rest in a moment, ...
5 years, 10 months ago (2015-02-02 13:37:09 UTC) #7
Mike West
Overall, this looks like the right structure for what you want to do. I want ...
5 years, 10 months ago (2015-02-02 15:19:45 UTC) #8
engedy
https://codereview.chromium.org/868253005/diff/100001/components/password_manager/core/browser/affiliation_backend.cc File components/password_manager/core/browser/affiliation_backend.cc (right): https://codereview.chromium.org/868253005/diff/100001/components/password_manager/core/browser/affiliation_backend.cc#newcode40 components/password_manager/core/browser/affiliation_backend.cc:40: } On 2015/02/02 15:19:44, Mike West wrote: > Nit: ...
5 years, 10 months ago (2015-02-02 15:33:15 UTC) #9
vabr (Chromium)
https://codereview.chromium.org/868253005/diff/100001/components/password_manager/core/browser/affiliation_backend.cc File components/password_manager/core/browser/affiliation_backend.cc (right): https://codereview.chromium.org/868253005/diff/100001/components/password_manager/core/browser/affiliation_backend.cc#newcode40 components/password_manager/core/browser/affiliation_backend.cc:40: } On 2015/02/02 15:19:44, Mike West wrote: > Nit: ...
5 years, 10 months ago (2015-02-02 15:37:37 UTC) #11
Mike West
On 2015/02/02 15:37:37, vabr (Chromium) wrote: > https://codereview.chromium.org/868253005/diff/100001/components/password_manager/core/browser/affiliation_backend.cc > File components/password_manager/core/browser/affiliation_backend.cc (right): > > https://codereview.chromium.org/868253005/diff/100001/components/password_manager/core/browser/affiliation_backend.cc#newcode40 ...
5 years, 10 months ago (2015-02-02 15:40:35 UTC) #12
vabr (Chromium)
On 2015/02/02 15:40:35, Mike West wrote: > On 2015/02/02 15:37:37, vabr (Chromium) wrote: > > ...
5 years, 10 months ago (2015-02-02 16:45:55 UTC) #13
engedy
https://codereview.chromium.org/868253005/diff/100001/components/password_manager/core/browser/affiliation_backend.cc File components/password_manager/core/browser/affiliation_backend.cc (right): https://codereview.chromium.org/868253005/diff/100001/components/password_manager/core/browser/affiliation_backend.cc#newcode23 components/password_manager/core/browser/affiliation_backend.cc:23: const int64_t kCacheHardExpiryDurationInSeconds = 24 * 3600; On 2015/02/02 ...
5 years, 10 months ago (2015-02-02 17:00:12 UTC) #14
Garrett Casto
Still haven't been able to completely digest this CL, but here are a few preliminary ...
5 years, 10 months ago (2015-02-03 08:20:38 UTC) #15
Mike West
LGTM. I'm happy with this, modulo Garrett's comments. Next time I'll start the review with ...
5 years, 10 months ago (2015-02-03 09:59:02 UTC) #16
engedy
https://codereview.chromium.org/868253005/diff/100001/components/password_manager/core/browser/affiliation_backend.cc File components/password_manager/core/browser/affiliation_backend.cc (right): https://codereview.chromium.org/868253005/diff/100001/components/password_manager/core/browser/affiliation_backend.cc#newcode40 components/password_manager/core/browser/affiliation_backend.cc:40: } On 2015/02/03 08:20:37, Garrett Casto wrote: > On ...
5 years, 10 months ago (2015-02-03 10:49:23 UTC) #18
engedy
Garrett, given this CL is on the critical path, and not yet exercised in production, ...
5 years, 10 months ago (2015-02-03 11:57:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/868253005/200001
5 years, 10 months ago (2015-02-03 11:58:09 UTC) #22
commit-bot: I haz the power
Committed patchset #10 (id:200001)
5 years, 10 months ago (2015-02-03 12:43:11 UTC) #23
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 12:44:00 UTC) #24
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/45920ca9cb490d8f1969a3d9bc543a457f94ec6b
Cr-Commit-Position: refs/heads/master@{#314320}

Powered by Google App Engine
This is Rietveld 408576698