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

Issue 807503002: Implement throttling logic for fetching affiliation information. (Closed)

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

Description

Implement throttling logic for fetching affiliation information. BUG=437865 Committed: https://crrev.com/89726c2516dfc9ca5dc4cc23acff4841608ad97c Cr-Commit-Position: refs/heads/master@{#314127}

Patch Set 1 #

Patch Set 2 : Mass rename, extended tests, no longer spamming TaskRunner. #

Patch Set 3 : Fix header guards. #

Total comments: 40

Patch Set 4 : Addressed first round of comments. #

Total comments: 24

Patch Set 5 : Addressed moar comments. #

Patch Set 6 : Nit #

Total comments: 38

Patch Set 7 : Addressed most unittest comments. #

Total comments: 7

Patch Set 8 : Addressed more comments. #

Total comments: 10

Patch Set 9 : Addressed final comments from mmenke@, format nits. #

Patch Set 10 : Rebase. #

Patch Set 11 : Missing override. #

Patch Set 12 : Fix ambiguity with pow() on Android. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+757 lines, -0 lines) Patch
M base/test/test_mock_time_task_runner.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M base/test/test_mock_time_task_runner.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_fetch_throttler.h View 1 2 3 4 5 6 7 8 1 chunk +130 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_fetch_throttler.cc View 1 2 3 4 5 6 7 8 1 chunk +168 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_fetch_throttler_delegate.h View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +417 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (3 generated)
engedy
Hi Matt, as discussed, could you please take a preliminary look at this? This would ...
6 years ago (2014-12-15 19:09:20 UTC) #2
engedy
Matt, I have implemented the changes we have discussed yesterday. Could you please take a ...
6 years ago (2014-12-16 14:34:06 UTC) #3
engedy
On 2014/12/16 14:34:06, engedy wrote: > Matt, I have implemented the changes we have discussed ...
5 years, 11 months ago (2015-01-05 10:06:12 UTC) #4
mmenke
On 2015/01/05 10:06:12, engedy wrote: > On 2014/12/16 14:34:06, engedy wrote: > > Matt, I ...
5 years, 11 months ago (2015-01-09 17:17:39 UTC) #5
engedy
On 2015/01/09 17:17:39, mmenke wrote: > On 2015/01/05 10:06:12, engedy wrote: > > On 2014/12/16 ...
5 years, 11 months ago (2015-01-09 17:20:53 UTC) #6
mmenke
First pass comments - stronly recommend focusing on the higher level questions rather worrying about ...
5 years, 11 months ago (2015-01-14 19:25:07 UTC) #7
mmenke
https://codereview.chromium.org/807503002/diff/40001/components/password_manager/core/browser/affiliation_fetch_throttler.cc File components/password_manager/core/browser/affiliation_fetch_throttler.cc (right): https://codereview.chromium.org/807503002/diff/40001/components/password_manager/core/browser/affiliation_fetch_throttler.cc#newcode104 components/password_manager/core/browser/affiliation_fetch_throttler.cc:104: exponential_backoff_->InformOfRequest(success); Oops...Got so sidetracked thinking about the NCN stuff, ...
5 years, 11 months ago (2015-01-14 20:43:43 UTC) #8
engedy
https://codereview.chromium.org/807503002/diff/40001/components/password_manager/core/browser/affiliation_fetch_throttler.cc File components/password_manager/core/browser/affiliation_fetch_throttler.cc (right): https://codereview.chromium.org/807503002/diff/40001/components/password_manager/core/browser/affiliation_fetch_throttler.cc#newcode17 components/password_manager/core/browser/affiliation_fetch_throttler.cc:17: net::BackoffEntry::Policy kAffiliationBackoffParameters = { On 2015/01/14 19:25:07, mmenke wrote: ...
5 years, 11 months ago (2015-01-15 19:16:43 UTC) #9
mmenke
Plan to go through tests on Tuesday. https://codereview.chromium.org/807503002/diff/40001/components/password_manager/core/browser/affiliation_fetch_throttler.cc File components/password_manager/core/browser/affiliation_fetch_throttler.cc (right): https://codereview.chromium.org/807503002/diff/40001/components/password_manager/core/browser/affiliation_fetch_throttler.cc#newcode141 components/password_manager/core/browser/affiliation_fetch_throttler.cc:141: if (has_network_connectivity_ ...
5 years, 11 months ago (2015-01-16 21:28:35 UTC) #10
mmenke
https://codereview.chromium.org/807503002/diff/60001/components/password_manager/core/browser/affiliation_fetch_throttler.cc File components/password_manager/core/browser/affiliation_fetch_throttler.cc (right): https://codereview.chromium.org/807503002/diff/60001/components/password_manager/core/browser/affiliation_fetch_throttler.cc#newcode107 components/password_manager/core/browser/affiliation_fetch_throttler.cc:107: exponential_backoff_->InformOfRequest(success); It's up to the consumer to tell us ...
5 years, 11 months ago (2015-01-16 21:31:28 UTC) #11
mmenke
https://codereview.chromium.org/807503002/diff/60001/components/password_manager/core/browser/affiliation_fetch_throttler.cc File components/password_manager/core/browser/affiliation_fetch_throttler.cc (right): https://codereview.chromium.org/807503002/diff/60001/components/password_manager/core/browser/affiliation_fetch_throttler.cc#newcode99 components/password_manager/core/browser/affiliation_fetch_throttler.cc:99: state_ = FETCH_NEEDED; On 2015/01/16 21:28:35, mmenke wrote: > ...
5 years, 11 months ago (2015-01-16 21:49:54 UTC) #12
mmenke
Oh, and you forgot to upload the new delegate file. :)
5 years, 11 months ago (2015-01-16 22:19:09 UTC) #13
engedy
https://codereview.chromium.org/807503002/diff/60001/components/password_manager/core/browser/affiliation_fetch_throttler.cc File components/password_manager/core/browser/affiliation_fetch_throttler.cc (right): https://codereview.chromium.org/807503002/diff/60001/components/password_manager/core/browser/affiliation_fetch_throttler.cc#newcode88 components/password_manager/core/browser/affiliation_fetch_throttler.cc:88: has_network_connectivity_ = !net::NetworkChangeNotifier::IsOffline(); On 2015/01/16 21:28:34, mmenke wrote: > ...
5 years, 11 months ago (2015-01-19 18:13:11 UTC) #14
mmenke
Sorry I didn't get to this today - first thing on my slate tomorrow.
5 years, 11 months ago (2015-01-20 22:09:26 UTC) #15
mmenke
https://codereview.chromium.org/807503002/diff/60001/components/password_manager/core/browser/affiliation_fetch_throttler.cc File components/password_manager/core/browser/affiliation_fetch_throttler.cc (right): https://codereview.chromium.org/807503002/diff/60001/components/password_manager/core/browser/affiliation_fetch_throttler.cc#newcode115 components/password_manager/core/browser/affiliation_fetch_throttler.cc:115: is_fetch_scheduled_ = true; On 2015/01/19 18:13:11, engedy wrote: > ...
5 years, 11 months ago (2015-01-21 17:18:53 UTC) #16
engedy
I have addressed most comments, there are 2 open questions in the tests. PTAL. https://codereview.chromium.org/807503002/diff/60001/components/password_manager/core/browser/affiliation_fetch_throttler.cc ...
5 years, 11 months ago (2015-01-23 22:09:44 UTC) #17
mmenke
Quick responses. I'll do a full pass (hopefully the last, modulo agreement on the AssertReleaseBetweenSecs ...
5 years, 11 months ago (2015-01-23 22:39:53 UTC) #18
engedy
https://codereview.chromium.org/807503002/diff/100001/components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc File components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc (right): https://codereview.chromium.org/807503002/diff/100001/components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc#newcode150 components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc:150: ASSERT_NO_FATAL_FAILURE(AssertReleaseBetweenSecs(5, 10)); > you're relying on a range including ...
5 years, 11 months ago (2015-01-24 00:35:39 UTC) #19
mmenke
On 2015/01/24 00:35:39, engedy wrote: > https://codereview.chromium.org/807503002/diff/100001/components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc > File > components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc > (right): > > ...
5 years, 11 months ago (2015-01-24 01:12:31 UTC) #20
mmenke
https://codereview.chromium.org/807503002/diff/120001/components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc File components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc (right): https://codereview.chromium.org/807503002/diff/120001/components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc#newcode57 components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc:57: class MockNetworkChangeNotifier : public net::NetworkChangeNotifier { This class isn't ...
5 years, 11 months ago (2015-01-26 18:49:13 UTC) #21
engedy
Please take another look. https://codereview.chromium.org/807503002/diff/100001/components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc File components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc (right): https://codereview.chromium.org/807503002/diff/100001/components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc#newcode229 components/password_manager/core/browser/affiliation_fetch_throttler_unittest.cc:229: } On 2015/01/23 22:39:53, mmenke ...
5 years, 11 months ago (2015-01-26 19:39:35 UTC) #22
engedy
Friendly ping.
5 years, 10 months ago (2015-01-28 23:40:33 UTC) #23
mmenke
On 2015/01/28 23:40:33, engedy wrote: > Friendly ping. Sorry, sick Monday, took Tuesday off because ...
5 years, 10 months ago (2015-01-29 17:00:42 UTC) #24
mmenke
LGTM (Sorry again about slowness - really took an unreasonable amount of time on this ...
5 years, 10 months ago (2015-01-30 19:50:42 UTC) #25
engedy
@Matt, many thanks for the very thorough review! @Mike, could you please review c/pm/* for ...
5 years, 10 months ago (2015-01-30 20:23:13 UTC) #27
Paweł Hajdan Jr.
base/test LGTM
5 years, 10 months ago (2015-01-30 21:11:36 UTC) #28
Mike West
components/password_manager LGTM, thanks!
5 years, 10 months ago (2015-01-31 09:52:35 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807503002/220001
5 years, 10 months ago (2015-02-02 09:41:11 UTC) #31
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 10 months ago (2015-02-02 10:58:05 UTC) #32
commit-bot: I haz the power
5 years, 10 months ago (2015-02-02 10:58:56 UTC) #33
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/89726c2516dfc9ca5dc4cc23acff4841608ad97c
Cr-Commit-Position: refs/heads/master@{#314127}

Powered by Google App Engine
This is Rietveld 408576698