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

Issue 2575623002: Componentizing SafeBrowsingBlockingPage Part 1 (Closed)

Created:
4 years ago by Jialiu Lin
Modified:
4 years ago
CC:
chromium-reviews, grt+watch_chromium.org, Nate Fischer, lpz
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This is one of several CLs to componentize SafeBrowsingBlockingPage. (1) Create SafeBrowsingErrorUI in security_interstitials component. Move display and command handling logic from SafeBrowsingBlockingPage to SafeBrowsingErrorUI. (2) Move all SB interstitial related strings from c/a/generated_reources.grd to components/security_interstitials_strings.grdp (3) Deprecate all interstitial related rappor metrics, since nobody is using them. BUG=666100 Committed: https://crrev.com/68ea739f83af7661f140802bd8941a577f02eb30 Cr-Commit-Position: refs/heads/master@{#439163}

Patch Set 1 #

Patch Set 2 : fix ios build #

Patch Set 3 : nits #

Total comments: 10

Patch Set 4 : address comments from estark@ #

Total comments: 18

Patch Set 5 : address comments from nparker@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+588 lines, -578 lines) Patch
M chrome/app/generated_resources.grd View 1 1 chunk +0 lines, -80 lines 0 comments Download
M chrome/browser/interstitials/chrome_controller_client.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/interstitials/chrome_controller_client.cc View 1 2 3 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/interstitials/chrome_metrics_helper.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/interstitials/chrome_metrics_helper.cc View 1 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.h View 1 2 3 4 8 chunks +13 lines, -30 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 4 13 chunks +36 lines, -342 lines 0 comments Download
M chrome/browser/ssl/cert_report_helper.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 2 chunks +0 lines, -9 lines 0 comments Download
M components/security_interstitials/core/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M components/security_interstitials/core/controller_client.h View 1 1 chunk +7 lines, -1 line 0 comments Download
M components/security_interstitials/core/metrics_helper.h View 1 2 3 4 4 chunks +5 lines, -30 lines 0 comments Download
M components/security_interstitials/core/metrics_helper.cc View 1 2 3 5 chunks +5 lines, -57 lines 0 comments Download
A components/security_interstitials/core/safe_browsing_error_ui.h View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
A components/security_interstitials/core/safe_browsing_error_ui.cc View 1 2 3 1 chunk +315 lines, -0 lines 0 comments Download
M components/security_interstitials_strings.grdp View 1 chunk +80 lines, -0 lines 0 comments Download
M ios/chrome/browser/interstitials/ios_chrome_controller_client.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/interstitials/ios_chrome_controller_client.mm View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/browser/interstitials/ios_chrome_metrics_helper.mm View 1 1 chunk +1 line, -4 lines 0 comments Download
M ios/chrome/browser/ssl/ios_ssl_blocking_page.mm View 1 2 chunks +0 lines, -9 lines 0 comments Download
M tools/metrics/rappor/rappor.xml View 1 4 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 36 (24 generated)
Jialiu Lin
Hi estark@ and nparker@, Could you take a look at this refactoring CL? No change ...
4 years ago (2016-12-14 06:37:08 UTC) #19
estark
lgtm with a few nits https://codereview.chromium.org/2575623002/diff/80001/chrome/browser/interstitials/chrome_controller_client.cc File chrome/browser/interstitials/chrome_controller_client.cc (right): https://codereview.chromium.org/2575623002/diff/80001/chrome/browser/interstitials/chrome_controller_client.cc#newcode164 chrome/browser/interstitials/chrome_controller_client.cc:164: // closing th error ...
4 years ago (2016-12-15 21:16:34 UTC) #20
Jialiu Lin
Thanks estark@! Your comments are all addressed. https://codereview.chromium.org/2575623002/diff/80001/chrome/browser/interstitials/chrome_controller_client.cc File chrome/browser/interstitials/chrome_controller_client.cc (right): https://codereview.chromium.org/2575623002/diff/80001/chrome/browser/interstitials/chrome_controller_client.cc#newcode164 chrome/browser/interstitials/chrome_controller_client.cc:164: // closing ...
4 years ago (2016-12-15 22:12:53 UTC) #21
Jialiu Lin
+droger@ for ios/chrome/browser/* +holte@ for rappor.xml Thanks!
4 years ago (2016-12-15 22:16:50 UTC) #23
Steven Holte
rappor lgtm
4 years ago (2016-12-15 22:24:39 UTC) #24
Nathan Parker
LGTM % nits, and maybe not use the large constructor for The SBErrorDisplayOptions https://codereview.chromium.org/2575623002/diff/100001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File ...
4 years ago (2016-12-15 23:30:43 UTC) #25
Nathan Parker
+lpz since it's moving code he just wrote
4 years ago (2016-12-15 23:31:26 UTC) #26
Jialiu Lin
https://codereview.chromium.org/2575623002/diff/100001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/2575623002/diff/100001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode113 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:113: SafeBrowsingErrorUI::SBErrorDisplayOptions display_options( On 2016/12/15 23:30:42, Nathan Parker wrote: > ...
4 years ago (2016-12-16 00:51:43 UTC) #27
droger
lgtm
4 years ago (2016-12-16 09:27:26 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/2575623002/120001
4 years ago (2016-12-16 17:27:03 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years ago (2016-12-16 19:16:27 UTC) #34
commit-bot: I haz the power
4 years ago (2016-12-16 19:20:36 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/68ea739f83af7661f140802bd8941a577f02eb30
Cr-Commit-Position: refs/heads/master@{#439163}

Powered by Google App Engine
This is Rietveld 408576698