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

Issue 1241583009: Async Safe Browsing check, on mobile (Closed)

Created:
5 years, 5 months ago by Nathan Parker
Modified:
5 years, 4 months ago
CC:
chromium-reviews, grt+watch_chromium.org, sgurun-gerrit only, gsennton, mattm, Scott Hess - ex-Googler, noelutz
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Run the Safe Browsing check in parallel with the resource load, on mobile. This decreases the mobile page-load time by about 12% so that it's basically on-par with non-safe-browsing mode. This does not change desktop. Meta: I have tests partially written that require some build refactoring which I'd prefer to put in a separate CL. Then I will convert all the existing CHECKs to DCHECKs. BUG=496754 Committed: https://crrev.com/9534829e7b24491f690032554327508d4f675de6 Cr-Commit-Position: refs/heads/master@{#341249}

Patch Set 1 #

Patch Set 2 : Remove logging, fixup comments #

Total comments: 7

Patch Set 3 : Rebase #

Patch Set 4 : Respond to reviews #

Total comments: 4

Patch Set 5 : Defer saving redirect URL, per review #

Patch Set 6 : swap order of check and save url, per review #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -66 lines) Patch
M chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_throttle.h View 1 2 3 8 chunks +44 lines, -17 lines 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_throttle.cc View 1 2 3 4 5 9 chunks +76 lines, -43 lines 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc View 1 2 3 1 chunk +16 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
Nathan Parker
5 years, 5 months ago (2015-07-23 00:35:10 UTC) #3
Nathan Parker
Changing reviewers to match OWNERS. Hi Lei -- For your review. Thank you. -- Nathan
5 years, 5 months ago (2015-07-23 17:40:09 UTC) #5
Lei Zhang
I defer to the safe_browsing OWNERS, all CC'd now.
5 years, 5 months ago (2015-07-23 20:31:11 UTC) #6
mattm
https://codereview.chromium.org/1241583009/diff/20001/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc File chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc (right): https://codereview.chromium.org/1241583009/diff/20001/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc#newcode50 chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc:50: return SafeBrowsingResourceThrottleFactory::CreateWithoutFactory( This is kinda confusing at first glance.. ...
5 years, 4 months ago (2015-07-24 23:24:11 UTC) #8
Scott Hess - ex-Googler
https://codereview.chromium.org/1241583009/diff/20001/chrome/browser/renderer_host/safe_browsing_resource_throttle.h File chrome/browser/renderer_host/safe_browsing_resource_throttle.h (right): https://codereview.chromium.org/1241583009/diff/20001/chrome/browser/renderer_host/safe_browsing_resource_throttle.h#newcode33 chrome/browser/renderer_host/safe_browsing_resource_throttle.h:33: // completes synchronously (no match in the bloom filter), ...
5 years, 4 months ago (2015-07-24 23:55:18 UTC) #10
Nathan Parker
PTAL. Thanks. https://codereview.chromium.org/1241583009/diff/20001/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc File chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc (right): https://codereview.chromium.org/1241583009/diff/20001/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc#newcode50 chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc:50: return SafeBrowsingResourceThrottleFactory::CreateWithoutFactory( On 2015/07/24 23:24:11, mattm wrote: ...
5 years, 4 months ago (2015-07-28 17:42:12 UTC) #11
mattm
https://codereview.chromium.org/1241583009/diff/60001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc File chrome/browser/renderer_host/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/1241583009/diff/60001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc#newcode83 chrome/browser/renderer_host/safe_browsing_resource_throttle.cc:83: redirect_urls_.push_back(redirect_info.new_url); Doing it here means that if there is ...
5 years, 4 months ago (2015-07-29 19:39:58 UTC) #12
Nathan Parker
PTAL. Thanks. https://codereview.chromium.org/1241583009/diff/60001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc File chrome/browser/renderer_host/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/1241583009/diff/60001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc#newcode83 chrome/browser/renderer_host/safe_browsing_resource_throttle.cc:83: redirect_urls_.push_back(redirect_info.new_url); On 2015/07/29 19:39:58, mattm wrote: > ...
5 years, 4 months ago (2015-07-30 18:42:52 UTC) #13
mattm
https://codereview.chromium.org/1241583009/diff/60001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc File chrome/browser/renderer_host/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/1241583009/diff/60001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc#newcode83 chrome/browser/renderer_host/safe_browsing_resource_throttle.cc:83: redirect_urls_.push_back(redirect_info.new_url); On 2015/07/30 18:42:52, nparker wrote: > On 2015/07/29 ...
5 years, 4 months ago (2015-07-30 19:50:15 UTC) #14
Nathan Parker
Fixed. PTAL. https://codereview.chromium.org/1241583009/diff/60001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc File chrome/browser/renderer_host/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/1241583009/diff/60001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc#newcode83 chrome/browser/renderer_host/safe_browsing_resource_throttle.cc:83: redirect_urls_.push_back(redirect_info.new_url); On 2015/07/30 19:50:15, mattm wrote: > ...
5 years, 4 months ago (2015-07-30 19:58:20 UTC) #15
mattm
lgtm
5 years, 4 months ago (2015-07-30 23:37:24 UTC) #16
Lei Zhang
lgtm stamp
5 years, 4 months ago (2015-07-30 23:47:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1241583009/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1241583009/120001
5 years, 4 months ago (2015-07-30 23:48:49 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 4 months ago (2015-07-31 00:53:18 UTC) #21
commit-bot: I haz the power
5 years, 4 months ago (2015-07-31 00:54:27 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9534829e7b24491f690032554327508d4f675de6
Cr-Commit-Position: refs/heads/master@{#341249}

Powered by Google App Engine
This is Rietveld 408576698