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

Issue 1343293004: Don't check URLs against Safe Browsing if not supported. (Closed)

Created:
5 years, 3 months ago by Nathan Parker
Modified:
5 years, 3 months ago
Reviewers:
Lei Zhang, scottmg, mattm
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't check URLs against Safe Browsing if not supported. Default all android builds to safe_browsing=3 mode. This will fix the crash in chrome_public_apk when built with //clank checkout. It'll also provide more consistency between public and private builds since both will use safe_browsing==3. At a later date, the public build will get support for safe browsing. In a follow-up CL I'd like to disable the Safe Browsing settings UI when it's not supported, assuming we can determine that before the UI is created. BUG=533105 Committed: https://crrev.com/36a226dfc5214fa56583dc14debda373c1718c58 Cr-Commit-Position: refs/heads/master@{#350429}

Patch Set 1 #

Patch Set 2 : fix desktop tests #

Total comments: 2

Patch Set 3 : fix features.gni as well #

Total comments: 2

Patch Set 4 : rm extraneous comment #

Total comments: 2

Patch Set 5 : braces, per the thestig #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -9 lines) Patch
M build/common.gypi View 1 chunk +1 line, -3 lines 0 comments Download
M build/config/features.gni View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_throttle.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/database_manager.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/remote_database_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/remote_database_manager.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/test_database_manager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/test_database_manager.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (13 generated)
Nathan Parker
scottmg@chromium.org: Please review changes in common.gypi thestig@chromium.org: Please review changes in safe_browsing_resource_throttle.cc mattm: Please review ...
5 years, 3 months ago (2015-09-22 16:16:02 UTC) #2
scottmg
https://codereview.chromium.org/1343293004/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1343293004/diff/20001/build/common.gypi#newcode1837 build/common.gypi:1837: 'safe_browsing%': 3, don't you need to change build/config/features.gni too?
5 years, 3 months ago (2015-09-22 17:30:41 UTC) #3
Nathan Parker
BTW once this lands, I'll remove the setting in //clank/ supplement.gypi https://codereview.chromium.org/1343293004/diff/20001/build/common.gypi File build/common.gypi (right): ...
5 years, 3 months ago (2015-09-22 17:54:04 UTC) #4
scottmg
config files lgtm https://codereview.chromium.org/1343293004/diff/40001/build/config/features.gni File build/config/features.gni (right): https://codereview.chromium.org/1343293004/diff/40001/build/config/features.gni#newcode110 build/config/features.gni:110: # extended mobile protection via an ...
5 years, 3 months ago (2015-09-22 17:58:49 UTC) #5
Nathan Parker
https://codereview.chromium.org/1343293004/diff/40001/build/config/features.gni File build/config/features.gni (right): https://codereview.chromium.org/1343293004/diff/40001/build/config/features.gni#newcode110 build/config/features.gni:110: # extended mobile protection via an external API. When ...
5 years, 3 months ago (2015-09-22 18:22:04 UTC) #6
mattm
lgtm
5 years, 3 months ago (2015-09-22 18:42:47 UTC) #7
Lei Zhang
lgtm https://codereview.chromium.org/1343293004/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/1343293004/diff/60001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc#newcode68 chrome/browser/renderer_host/safe_browsing_resource_throttle.cc:68: return nullptr; nit: wrap this in {} when ...
5 years, 3 months ago (2015-09-22 20:36:22 UTC) #8
Nathan Parker
Thanks for the reviews! https://codereview.chromium.org/1343293004/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/1343293004/diff/60001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc#newcode68 chrome/browser/renderer_host/safe_browsing_resource_throttle.cc:68: return nullptr; On 2015/09/22 20:36:22, ...
5 years, 3 months ago (2015-09-22 20:40:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1343293004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1343293004/80001
5 years, 3 months ago (2015-09-22 20:42:36 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/72228)
5 years, 3 months ago (2015-09-22 23:10:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1343293004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1343293004/80001
5 years, 3 months ago (2015-09-22 23:18:59 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/72330)
5 years, 3 months ago (2015-09-23 04:53:43 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1343293004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1343293004/80001
5 years, 3 months ago (2015-09-23 21:34:25 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/117110)
5 years, 3 months ago (2015-09-23 21:46:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1343293004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1343293004/80001
5 years, 3 months ago (2015-09-23 22:11:21 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/117136)
5 years, 3 months ago (2015-09-23 23:28:27 UTC) #28
Nathan Parker
this fails somewhere different every time. Still trying.
5 years, 3 months ago (2015-09-24 00:33:53 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1343293004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1343293004/80001
5 years, 3 months ago (2015-09-24 00:38:31 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 3 months ago (2015-09-24 02:30:57 UTC) #32
commit-bot: I haz the power
5 years, 3 months ago (2015-09-24 02:31:43 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/36a226dfc5214fa56583dc14debda373c1718c58
Cr-Commit-Position: refs/heads/master@{#350429}

Powered by Google App Engine
This is Rietveld 408576698