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

Issue 2481743009: Expose malware/phishing/etc. distinction from SafeBrowsingUIManager (Closed)

Created:
4 years, 1 month ago by estark
Modified:
4 years, 1 month ago
Reviewers:
lgarron, msw, Nathan Parker
CC:
chromium-reviews, grt+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose malware/phishing/etc. distinction from SafeBrowsingUIManager SafeBrowsingUIManager reports whether a URL is whitelisted (or pending to be whitelisted), but does not report the type of threat for which the URL is whitelisted. This CL returns a SBThreatType from the whitelist lookup methods, which is used to set a SecurityInfo::malicious_content_status field, replacing the old boolean fails_malware_check field that didn't capture the type of threat. A follow-up CL will use the new |malicious_content_status| field to set WebsiteSettings (page info bubble) strings appropriately. BUG=646629 Committed: https://crrev.com/7ffa8c6bfc4f532cef64baa3944568c3f5939c89 Cr-Commit-Position: refs/heads/master@{#431684}

Patch Set 1 #

Patch Set 2 : fix tests #

Total comments: 15

Patch Set 3 : nparker comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -53 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/ui_manager.h View 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/ui_manager.cc View 1 2 9 chunks +47 lines, -22 lines 0 comments Download
M chrome/browser/safe_browsing/ui_manager_unittest.cc View 2 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client.cc View 1 2 3 1 chunk +29 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/security_state/security_state_model.h View 1 2 3 2 chunks +12 lines, -4 lines 0 comments Download
M components/security_state/security_state_model.cc View 1 2 3 6 chunks +16 lines, -10 lines 0 comments Download
M components/security_state/security_state_model_unittest.cc View 1 2 3 6 chunks +21 lines, -9 lines 0 comments Download

Messages

Total messages: 38 (25 generated)
estark
nparker, can you please review chrome/browser/safe_browsing? lgarron, can you please review chrome/browser/ssl and components/security_state? Thanks!
4 years, 1 month ago (2016-11-09 16:06:55 UTC) #10
estark
https://codereview.chromium.org/2481743009/diff/20001/components/security_state/security_state_model.h File components/security_state/security_state_model.h (right): https://codereview.chromium.org/2481743009/diff/20001/components/security_state/security_state_model.h#newcode101 components/security_state/security_state_model.h:101: MALICIOUS_CONTENT_STATUS_MALWARE, These different statuses will be used to distinguish ...
4 years, 1 month ago (2016-11-09 16:07:44 UTC) #11
Nathan Parker
lgtm https://codereview.chromium.org/2481743009/diff/20001/chrome/browser/safe_browsing/ui_manager.cc File chrome/browser/safe_browsing/ui_manager.cc (right): https://codereview.chromium.org/2481743009/diff/20001/chrome/browser/safe_browsing/ui_manager.cc#newcode69 chrome/browser/safe_browsing/ui_manager.cc:69: if (Contains(url, &existing_threat_type)) I'm not sure this should ...
4 years, 1 month ago (2016-11-10 00:13:04 UTC) #12
estark
+msw for chrome/browser/ui Friendly ping to lgarron (Thanks for the review nparker; haven't addressed your ...
4 years, 1 month ago (2016-11-11 00:56:46 UTC) #14
msw
c/b/ui rubber stamp lgtm
4 years, 1 month ago (2016-11-11 01:05:36 UTC) #15
lgarron
security_state changes LGTM; those should be straightforward to read from website_settings/Page Info.
4 years, 1 month ago (2016-11-11 20:00:52 UTC) #17
estark
https://codereview.chromium.org/2481743009/diff/20001/chrome/browser/safe_browsing/ui_manager.cc File chrome/browser/safe_browsing/ui_manager.cc (right): https://codereview.chromium.org/2481743009/diff/20001/chrome/browser/safe_browsing/ui_manager.cc#newcode69 chrome/browser/safe_browsing/ui_manager.cc:69: if (Contains(url, &existing_threat_type)) On 2016/11/10 00:13:03, Nathan Parker wrote: ...
4 years, 1 month ago (2016-11-11 20:28:14 UTC) #18
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/2481743009/40001
4 years, 1 month ago (2016-11-11 20:29:19 UTC) #21
commit-bot: I haz the power
Failed to apply patch for components/security_state/security_state_model.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-11 21:22:30 UTC) #25
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/2481743009/60001
4 years, 1 month ago (2016-11-11 22:20:36 UTC) #28
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/2481743009/60001
4 years, 1 month ago (2016-11-11 23:15:25 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-11 23:22:49 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 23:54:38 UTC) #38
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7ffa8c6bfc4f532cef64baa3944568c3f5939c89
Cr-Commit-Position: refs/heads/master@{#431684}

Powered by Google App Engine
This is Rietveld 408576698