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

Issue 2303413002: Simplify security_interstitials::ControllerClient and other related classes (Closed)

Created:
4 years, 3 months ago by meacer
Modified:
4 years, 2 months ago
CC:
chromium-reviews, grt+watch_chromium.org, Nathan Parker
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify security_interstitials::ControllerClient and other related classes. - Remove set_metrics_helper from ControllerClient and passes the MetricHelper in the constructor. - Use the metric helper from the ControllerClient instead of doing it through SecurityInterstitialPage methods. - Remove obsolete methods from SecurityInterstitialPage. - Convert a bunch of methods to static, group some code into separate functions. BUG=488673 Committed: https://crrev.com/d19deef47a83440e0b5803283a4075716ca1b9eb Cr-Commit-Position: refs/heads/master@{#421718}

Patch Set 1 #

Patch Set 2 : Bravely attempt fixing iOS without a Mac #

Patch Set 3 : iOS Take 2 #

Patch Set 4 : iOS take 2 #

Patch Set 5 : MakeUnique #

Patch Set 6 : Diff with crrev/2298613007 #

Patch Set 7 : explicit #

Patch Set 8 : Remove unused param #

Patch Set 9 : namespaces #

Total comments: 5

Patch Set 10 : Rebase #

Patch Set 11 : Rebase 2 #

Total comments: 4

Patch Set 12 : Jialiu comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -198 lines) Patch
M chrome/browser/interstitials/chrome_controller_client.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/interstitials/chrome_controller_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/interstitials/security_interstitial_page.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/interstitials/security_interstitial_page.cc View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.h View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +90 lines, -59 lines 0 comments Download
M chrome/browser/ssl/bad_clock_blocking_page.cc View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -11 lines 0 comments Download
M chrome/browser/ssl/captive_portal_blocking_page.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +26 lines, -9 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 2 3 4 5 6 7 8 9 4 chunks +71 lines, -43 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/ssl_error_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/interstitials/interstitial_ui.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M components/security_interstitials/core/controller_client.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -2 lines 0 comments Download
M components/security_interstitials/core/controller_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -6 lines 0 comments Download
M ios/chrome/browser/interstitials/ios_chrome_controller_client.h View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M ios/chrome/browser/interstitials/ios_chrome_controller_client.mm View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -2 lines 0 comments Download
M ios/chrome/browser/interstitials/ios_security_interstitial_page.h View 1 1 chunk +0 lines, -6 lines 0 comments Download
M ios/chrome/browser/interstitials/ios_security_interstitial_page.mm View 1 1 chunk +0 lines, -2 lines 0 comments Download
M ios/chrome/browser/ssl/ios_ssl_blocking_page.mm View 1 2 3 4 5 6 7 8 9 3 chunks +22 lines, -17 lines 0 comments Download

Messages

Total messages: 43 (27 generated)
meacer
felt: PTAL? This is a follow up to https://codereview.chromium.org/2298613007/
4 years, 3 months ago (2016-09-02 23:27:48 UTC) #18
meacer
felt: PTAL? This is a follow up to https://codereview.chromium.org/2298613007/
4 years, 3 months ago (2016-09-02 23:27:48 UTC) #19
felt
"Patch Set 2 : Bravely attempt fixing iOS without a Mac" 👍 😂
4 years, 3 months ago (2016-09-03 15:49:29 UTC) #20
felt
https://codereview.chromium.org/2303413002/diff/160001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/2303413002/diff/160001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode129 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:129: SafeBrowsingBlockingPage::GetInterstitialReason(unsafe_resources); Doesn't this mean that now GetInterstitialReason is called ...
4 years, 3 months ago (2016-09-06 20:33:19 UTC) #21
meacer
https://codereview.chromium.org/2303413002/diff/160001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/2303413002/diff/160001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode129 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:129: SafeBrowsingBlockingPage::GetInterstitialReason(unsafe_resources); On 2016/09/06 20:33:19, felt wrote: > Doesn't this ...
4 years, 3 months ago (2016-09-06 20:40:16 UTC) #22
felt
lgtm % nit https://codereview.chromium.org/2303413002/diff/160001/chrome/browser/ssl/captive_portal_blocking_page.cc File chrome/browser/ssl/captive_portal_blocking_page.cc (right): https://codereview.chromium.org/2303413002/diff/160001/chrome/browser/ssl/captive_portal_blocking_page.cc#newcode60 chrome/browser/ssl/captive_portal_blocking_page.cc:60: : SecurityInterstitialPage(web_contents, request_url, nullptr), On 2016/09/06 ...
4 years, 3 months ago (2016-09-07 00:06:12 UTC) #23
meacer
On 2016/09/07 00:06:12, felt wrote: > lgtm % nit > > https://codereview.chromium.org/2303413002/diff/160001/chrome/browser/ssl/captive_portal_blocking_page.cc > File chrome/browser/ssl/captive_portal_blocking_page.cc ...
4 years, 2 months ago (2016-09-27 20:52:39 UTC) #28
meacer
nparker for chrome/browser/safe_browsing/ rohitrao for ios/chrome/ dbeam for chrome/browser/ui/webui/interstitials/ Can you PTAL? Thanks.
4 years, 2 months ago (2016-09-27 20:56:58 UTC) #30
rohitrao (ping after 24h)
ios lgtm
4 years, 2 months ago (2016-09-27 21:40:37 UTC) #31
Dan Beam
lgtm
4 years, 2 months ago (2016-09-27 22:36:32 UTC) #32
Nathan Parker
-->jialiul for review
4 years, 2 months ago (2016-09-29 00:17:52 UTC) #34
Jialiu Lin
lgtm for chrome/browser/safe_browsing/ https://codereview.chromium.org/2303413002/diff/200001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/2303413002/diff/200001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode158 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:158: const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) { nit: you ...
4 years, 2 months ago (2016-09-29 00:34:01 UTC) #35
meacer
https://codereview.chromium.org/2303413002/diff/200001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/2303413002/diff/200001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode158 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:158: const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) { On 2016/09/29 00:34:01, Jialiu Lin ...
4 years, 2 months ago (2016-09-29 01:26:24 UTC) #36
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/2303413002/220001
4 years, 2 months ago (2016-09-29 01:27:01 UTC) #39
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 2 months ago (2016-09-29 02:08:37 UTC) #41
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 02:10:41 UTC) #43
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/d19deef47a83440e0b5803283a4075716ca1b9eb
Cr-Commit-Position: refs/heads/master@{#421718}

Powered by Google App Engine
This is Rietveld 408576698