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

Issue 2616653002: Have a list of pending checks instead of pending clients (Closed)

Created:
3 years, 11 months ago by vakh (use Gerrit instead)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, loading-reviews_chromium.org, Randy Smith (Not in Mondays), mmenke, Charlie Harrison
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Have a list of pending checks instead of pending clients since checks are unique, but clients aren't. Also, dump whether the SB check for the URL returned by the DBManager had timed out. Also, make the dump buffer smaller hoping to get more minidumps. BUG=660293 Review-Url: https://codereview.chromium.org/2616653002 Cr-Commit-Position: refs/heads/master@{#442731} Committed: https://chromium.googlesource.com/chromium/src/+/9f5bdb322be6063d1db0522592dde88b1c666499

Patch Set 1 #

Total comments: 18

Patch Set 2 : Record pending checks instead of pending clients because a client can send multiple Check* requests #

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : Resolve merge issue #

Patch Set 5 : Don't care about timing out of SB check for redirect loops. #

Total comments: 3

Patch Set 6 : Now with a unit test! #

Total comments: 6

Patch Set 7 : Rebase and use the new fake GHPM in unit test #

Total comments: 2

Patch Set 8 : shess@ feedback #

Patch Set 9 : git rebase manually! ugh. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -29 lines) Patch
M components/safe_browsing/base_safe_browsing_resource_throttle.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M components/safe_browsing/base_safe_browsing_resource_throttle.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -3 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.h View 1 3 chunks +5 lines, -6 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.cc View 1 2 3 4 5 6 7 6 chunks +20 lines, -20 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 99 (62 generated)
vakh (use Gerrit instead)
3 years, 11 months ago (2017-01-04 15:08:21 UTC) #4
vakh (use Gerrit instead)
If all the minidumps show that value to be '1', it'd confirm our suspicion about ...
3 years, 11 months ago (2017-01-04 15:10:21 UTC) #5
Nathan Parker
https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc#newcode241 chrome/browser/loader/safe_browsing_resource_throttle.cc:241: bool url_had_timed_out = base::ContainsValue(timed_out_urls_, url); A thought: If this ...
3 years, 11 months ago (2017-01-04 18:48:18 UTC) #8
Scott Hess - ex-Googler
Minor comments while I ponder what this means in the overall system. Could you contrive ...
3 years, 11 months ago (2017-01-04 18:52:10 UTC) #9
vakh (use Gerrit instead)
Record pending checks instead of pending clients because a client can send multiple Check* requests
3 years, 11 months ago (2017-01-05 23:36:14 UTC) #14
vakh (use Gerrit instead)
rebase
3 years, 11 months ago (2017-01-06 00:15:58 UTC) #20
vakh (use Gerrit instead)
The latest patch (ignoring rebase) contains the possible fix as well as debugging information (from ...
3 years, 11 months ago (2017-01-06 00:31:15 UTC) #25
Scott Hess - ex-Googler
https://codereview.chromium.org/2616653002/diff/40001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2616653002/diff/40001/components/safe_browsing_db/v4_local_database_manager.cc#newcode165 components/safe_browsing_db/v4_local_database_manager.cc:165: [&client](const PendingCheck* check) { return check->client == client; }); ...
3 years, 11 months ago (2017-01-06 00:42:02 UTC) #26
vakh (use Gerrit instead)
Resolve merge issue
3 years, 11 months ago (2017-01-06 00:43:23 UTC) #27
vakh (use Gerrit instead)
https://codereview.chromium.org/2616653002/diff/40001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2616653002/diff/40001/components/safe_browsing_db/v4_local_database_manager.cc#newcode539 components/safe_browsing_db/v4_local_database_manager.cc:539: pending_clients_.insert(check->client); On 2017/01/06 00:42:02, Scott Hess wrote: > Something ...
3 years, 11 months ago (2017-01-06 00:43:49 UTC) #29
Scott Hess - ex-Googler
https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc#newcode407 chrome/browser/loader/safe_browsing_resource_throttle.cc:407: } On 2017/01/06 00:31:15, vakh (Varun Khaneja) wrote: > ...
3 years, 11 months ago (2017-01-06 00:48:53 UTC) #31
vakh (use Gerrit instead)
https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc#newcode407 chrome/browser/loader/safe_browsing_resource_throttle.cc:407: } > ACK on the erase(remove()) idiom, but what ...
3 years, 11 months ago (2017-01-06 01:05:50 UTC) #32
vakh (use Gerrit instead)
csharrison@ -- could you please review the changes in safe_browsing_resource_throttle.*? Thanks.
3 years, 11 months ago (2017-01-06 01:28:04 UTC) #34
Nathan Parker
lgtm How about some tests that validate the bug is fixed? https://codereview.chromium.org/2616653002/diff/40001/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): ...
3 years, 11 months ago (2017-01-06 01:41:01 UTC) #35
vakh (use Gerrit instead)
Don't care about timing out of SB check for redirect loops.
3 years, 11 months ago (2017-01-06 02:06:42 UTC) #38
vakh (use Gerrit instead)
https://codereview.chromium.org/2616653002/diff/40001/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2616653002/diff/40001/chrome/browser/loader/safe_browsing_resource_throttle.cc#newcode405 chrome/browser/loader/safe_browsing_resource_throttle.cc:405: if (iter != timed_out_urls_.end()) { On 2017/01/06 01:41:01, Nathan ...
3 years, 11 months ago (2017-01-06 02:15:09 UTC) #41
Scott Hess - ex-Googler
https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc#newcode407 chrome/browser/loader/safe_browsing_resource_throttle.cc:407: } On 2017/01/06 01:05:50, vakh (Varun Khaneja) wrote: > ...
3 years, 11 months ago (2017-01-06 02:42:27 UTC) #42
vakh (use Gerrit instead)
https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc#newcode407 chrome/browser/loader/safe_browsing_resource_throttle.cc:407: } On 2017/01/06 02:42:27, Scott Hess wrote: > On ...
3 years, 11 months ago (2017-01-06 02:46:59 UTC) #43
Scott Hess - ex-Googler
https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc#newcode407 chrome/browser/loader/safe_browsing_resource_throttle.cc:407: } On 2017/01/06 02:46:59, vakh (Varun Khaneja) wrote: > ...
3 years, 11 months ago (2017-01-06 04:27:18 UTC) #46
Charlie Harrison
nit: could you wrap your CL title/description to 80 cols? https://codereview.chromium.org/2616653002/diff/80001/chrome/browser/loader/safe_browsing_resource_throttle.h File chrome/browser/loader/safe_browsing_resource_throttle.h (right): https://codereview.chromium.org/2616653002/diff/80001/chrome/browser/loader/safe_browsing_resource_throttle.h#newcode174 ...
3 years, 11 months ago (2017-01-06 16:53:01 UTC) #47
vakh (use Gerrit instead)
Now with a unit test!
3 years, 11 months ago (2017-01-06 22:06:15 UTC) #48
vakh (use Gerrit instead)
Now with a unit test!
3 years, 11 months ago (2017-01-09 19:04:47 UTC) #53
vakh (use Gerrit instead)
Now with a unit test!
3 years, 11 months ago (2017-01-09 19:07:51 UTC) #57
vakh (use Gerrit instead)
Now with a unit test!
3 years, 11 months ago (2017-01-09 19:11:57 UTC) #61
vakh (use Gerrit instead)
nparker: test added. Also confirmed that this test fails if I do not apply the ...
3 years, 11 months ago (2017-01-09 19:21:32 UTC) #66
Nathan Parker
https://codereview.chromium.org/2616653002/diff/160001/components/safe_browsing_db/v4_local_database_manager_unittest.cc File components/safe_browsing_db/v4_local_database_manager_unittest.cc (right): https://codereview.chromium.org/2616653002/diff/160001/components/safe_browsing_db/v4_local_database_manager_unittest.cc#newcode122 components/safe_browsing_db/v4_local_database_manager_unittest.cc:122: void WaitForTasksOnTaskRunner() { Make private, or better yet just ...
3 years, 11 months ago (2017-01-09 19:46:28 UTC) #67
Charlie Harrison
https://codereview.chromium.org/2616653002/diff/80001/chrome/browser/loader/safe_browsing_resource_throttle.h File chrome/browser/loader/safe_browsing_resource_throttle.h (right): https://codereview.chromium.org/2616653002/diff/80001/chrome/browser/loader/safe_browsing_resource_throttle.h#newcode174 chrome/browser/loader/safe_browsing_resource_throttle.h:174: std::vector<GURL> timed_out_urls_; On 2017/01/09 19:21:32, vakh (Varun Khaneja) wrote: ...
3 years, 11 months ago (2017-01-09 21:46:54 UTC) #70
vakh (use Gerrit instead)
Rebase and use the new fake GHPM in unit test
3 years, 11 months ago (2017-01-10 01:53:24 UTC) #71
vakh (use Gerrit instead)
https://codereview.chromium.org/2616653002/diff/160001/components/safe_browsing_db/v4_local_database_manager_unittest.cc File components/safe_browsing_db/v4_local_database_manager_unittest.cc (right): https://codereview.chromium.org/2616653002/diff/160001/components/safe_browsing_db/v4_local_database_manager_unittest.cc#newcode122 components/safe_browsing_db/v4_local_database_manager_unittest.cc:122: void WaitForTasksOnTaskRunner() { On 2017/01/09 19:46:28, Nathan Parker wrote: ...
3 years, 11 months ago (2017-01-10 01:54:53 UTC) #74
Scott Hess - ex-Googler
https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc#newcode407 chrome/browser/loader/safe_browsing_resource_throttle.cc:407: } On 2017/01/06 04:27:18, Scott Hess wrote: > On ...
3 years, 11 months ago (2017-01-10 21:16:13 UTC) #77
vakh (use Gerrit instead)
shess@ feedback
3 years, 11 months ago (2017-01-10 21:36:59 UTC) #79
vakh (use Gerrit instead)
Thanks. PTAL. https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc#newcode407 chrome/browser/loader/safe_browsing_resource_throttle.cc:407: } On 2017/01/10 21:16:12, Scott Hess wrote: ...
3 years, 11 months ago (2017-01-10 21:38:08 UTC) #82
Scott Hess - ex-Googler
lgtm https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc File chrome/browser/loader/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2616653002/diff/1/chrome/browser/loader/safe_browsing_resource_throttle.cc#newcode407 chrome/browser/loader/safe_browsing_resource_throttle.cc:407: } On 2017/01/10 21:38:08, vakh (Varun Khaneja) wrote: ...
3 years, 11 months ago (2017-01-10 21:43:05 UTC) #85
vakh (use Gerrit instead)
git rebase manually! ugh.
3 years, 11 months ago (2017-01-10 22:36:56 UTC) #86
vakh (use Gerrit instead)
git rebase manually! ugh.
3 years, 11 months ago (2017-01-10 22:38:40 UTC) #90
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/2616653002/260001
3 years, 11 months ago (2017-01-10 22:40:10 UTC) #96
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 23:41:45 UTC) #99
Message was sent while issue was closed.
Committed patchset #9 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/9f5bdb322be6063d1db0522592dd...

Powered by Google App Engine
This is Rietveld 408576698