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

Issue 1481213003: Componentize the bad clock blocking page (Closed)

Created:
5 years ago by felt
Modified:
5 years ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org, Matt Giuca
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentize the bad clock blocking page This breaks the former BadClockBlockingPage into three parts: 1. security_interstitials::BadClockUI handles strings and commands. 2. security_interstitials::ControllerClient abstracts the functionality provided by the embedder to act on commands. ChromeControllerClient implements this functionality for Chrome. BadClockUI has a ControllerClient to ask to do its bidding. 3. BadClockBlockingPage implements InterstitialPageDelegate and has a BadClockUI, which it asks to handle strings, commands, and everything else not platform-specific. (BadClockBlockingPage has a BadClockUI has a ControllerClient.) Other embedders will: - make their own analogs to the BadClockBlockingPage - implement their own PlatformControllerClient that inherits from ControllerClient - share the BadClockUI class I also added security_interstitials::common_string_utils to hold string- manipulation methods that I expect to reuse in the future for other classes that are componentized. BUG=488673 Committed: https://crrev.com/146e920a4cf5fda4c30bc348e16f81bfea5e3990 Cr-Commit-Position: refs/heads/master@{#362897}

Patch Set 1 : Feed the hungry trybots #

Patch Set 2 : Feed the trybots... or else #

Patch Set 3 : Two villagers are missing. I hope the trybots accept this offering #

Patch Set 4 : Temporary trybot truce gives town the time to fortify defenses #

Total comments: 12

Patch Set 5 : Changes for estark #

Total comments: 10

Patch Set 6 : Fixing includes FOR REALSIES #

Total comments: 8

Patch Set 7 : Change for pkasting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -255 lines) Patch
M chrome/browser/interstitials/chrome_controller_client.h View 1 2 3 4 5 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/interstitials/chrome_controller_client.cc View 1 2 3 4 5 1 chunk +142 lines, -1 line 0 comments Download
M chrome/browser/interstitials/security_interstitial_page.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/interstitials/security_interstitial_page.cc View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ssl/bad_clock_blocking_page.h View 1 2 3 4 5 4 chunks +15 lines, -10 lines 0 comments Download
M chrome/browser/ssl/bad_clock_blocking_page.cc View 1 2 3 4 5 7 chunks +36 lines, -237 lines 0 comments Download
M chrome/browser/ssl/captive_portal_blocking_page.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/security_interstitials.gypi View 2 chunks +7 lines, -0 lines 0 comments Download
M components/security_interstitials/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M components/security_interstitials/core/BUILD.gn View 2 chunks +7 lines, -0 lines 0 comments Download
A components/security_interstitials/core/bad_clock_ui.h View 1 chunk +48 lines, -0 lines 0 comments Download
A components/security_interstitials/core/bad_clock_ui.cc View 1 chunk +119 lines, -0 lines 0 comments Download
A components/security_interstitials/core/common_string_util.h View 1 chunk +37 lines, -0 lines 0 comments Download
A components/security_interstitials/core/common_string_util.cc View 1 chunk +56 lines, -0 lines 0 comments Download
M components/security_interstitials/core/controller_client.h View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 42 (16 generated)
felt
estark, blundell, PTAL? In particular, I'd appreciate high-level thoughts on the structure.
5 years ago (2015-11-28 21:57:01 UTC) #9
blundell
What's your vision for SecurityInterstitialPage? Are you envisioning that continuing to live in //chrome? I ...
5 years ago (2015-11-30 16:49:21 UTC) #10
felt
On 2015/11/30 16:49:21, blundell wrote: > What's your vision for SecurityInterstitialPage? Are you envisioning that ...
5 years ago (2015-11-30 17:26:52 UTC) #11
felt
On 2015/11/30 17:26:52, felt wrote: > On 2015/11/30 16:49:21, blundell wrote: > > What's your ...
5 years ago (2015-11-30 17:28:02 UTC) #12
blundell
This looks fine to me at a high level given the constraint you described. I'm ...
5 years ago (2015-12-01 16:35:52 UTC) #13
felt
On 2015/12/01 16:35:52, blundell wrote: > This looks fine to me at a high level ...
5 years ago (2015-12-01 17:22:56 UTC) #14
blundell
On 2015/12/01 17:22:56, felt wrote: > On 2015/12/01 16:35:52, blundell wrote: > > This looks ...
5 years ago (2015-12-01 17:39:40 UTC) #15
felt
On 2015/12/01 17:39:40, blundell wrote: > On 2015/12/01 17:22:56, felt wrote: > > On 2015/12/01 ...
5 years ago (2015-12-01 18:13:30 UTC) #16
estark
https://codereview.chromium.org/1481213003/diff/160001/chrome/browser/interstitials/chrome_controller_client.h File chrome/browser/interstitials/chrome_controller_client.h (right): https://codereview.chromium.org/1481213003/diff/160001/chrome/browser/interstitials/chrome_controller_client.h#newcode11 chrome/browser/interstitials/chrome_controller_client.h:11: #include "content/public/browser/web_contents.h" can these be left as forward-declarations? https://codereview.chromium.org/1481213003/diff/160001/chrome/browser/ssl/bad_clock_blocking_page.cc ...
5 years ago (2015-12-01 18:40:17 UTC) #17
felt
https://codereview.chromium.org/1481213003/diff/160001/chrome/browser/interstitials/chrome_controller_client.h File chrome/browser/interstitials/chrome_controller_client.h (right): https://codereview.chromium.org/1481213003/diff/160001/chrome/browser/interstitials/chrome_controller_client.h#newcode11 chrome/browser/interstitials/chrome_controller_client.h:11: #include "content/public/browser/web_contents.h" On 2015/12/01 18:40:17, estark wrote: > can ...
5 years ago (2015-12-01 19:13:45 UTC) #18
estark
lgtm % removing the unnecessary #includes in favor of forward-declarations, and the comment on bad_clock_blocking_page.cc:80 ...
5 years ago (2015-12-01 21:41:51 UTC) #19
felt
https://codereview.chromium.org/1481213003/diff/180001/chrome/browser/interstitials/chrome_controller_client.h File chrome/browser/interstitials/chrome_controller_client.h (right): https://codereview.chromium.org/1481213003/diff/180001/chrome/browser/interstitials/chrome_controller_client.h#newcode10 chrome/browser/interstitials/chrome_controller_client.h:10: #include "content/public/browser/interstitial_page.h" On 2015/12/01 21:41:51, estark wrote: > remove ...
5 years ago (2015-12-01 22:59:24 UTC) #20
felt
To approve new DEPS... pkasting: +components/url_formatter/ mattm: +net/ssl And mattm, please also take a look ...
5 years ago (2015-12-02 00:52:41 UTC) #22
Peter Kasting
Dependency LGTM, but I have other questions. https://codereview.chromium.org/1481213003/diff/200001/chrome/browser/interstitials/security_interstitial_page.cc File chrome/browser/interstitials/security_interstitial_page.cc (right): https://codereview.chromium.org/1481213003/diff/200001/chrome/browser/interstitials/security_interstitial_page.cc#newcode22 chrome/browser/interstitials/security_interstitial_page.cc:22: #include "components/url_formatter/url_formatter.h" ...
5 years ago (2015-12-02 01:14:40 UTC) #23
felt
https://codereview.chromium.org/1481213003/diff/200001/chrome/browser/interstitials/security_interstitial_page.cc File chrome/browser/interstitials/security_interstitial_page.cc (right): https://codereview.chromium.org/1481213003/diff/200001/chrome/browser/interstitials/security_interstitial_page.cc#newcode22 chrome/browser/interstitials/security_interstitial_page.cc:22: #include "components/url_formatter/url_formatter.h" On 2015/12/02 01:14:40, Peter Kasting wrote: > ...
5 years ago (2015-12-02 03:30:38 UTC) #24
Peter Kasting
OK, LGTM on this
5 years ago (2015-12-02 05:28:14 UTC) #25
meacer
https://codereview.chromium.org/1481213003/diff/200001/components/security_interstitials/core/common_string_util.cc File components/security_interstitials/core/common_string_util.cc (right): https://codereview.chromium.org/1481213003/diff/200001/components/security_interstitials/core/common_string_util.cc#newcode23 components/security_interstitials/core/common_string_util.cc:23: base::i18n::WrapStringWithLTRFormatting(&host); On 2015/12/02 03:30:38, felt wrote: > On 2015/12/02 ...
5 years ago (2015-12-02 18:20:23 UTC) #27
Peter Kasting
On 2015/12/02 18:20:23, Mustafa Emre Acer wrote: > https://codereview.chromium.org/1481213003/diff/200001/components/security_interstitials/core/common_string_util.cc > File components/security_interstitials/core/common_string_util.cc (right): > > ...
5 years ago (2015-12-02 20:16:49 UTC) #29
felt
On 2015/12/02 20:16:49, Peter Kasting wrote: > On 2015/12/02 18:20:23, Mustafa Emre Acer wrote: > ...
5 years ago (2015-12-02 20:18:31 UTC) #30
Peter Kasting
On 2015/12/02 20:18:31, felt wrote: > On 2015/12/02 20:16:49, Peter Kasting wrote: > > On ...
5 years ago (2015-12-02 20:19:50 UTC) #31
Matt Giuca
Removing myself as reviewer (as discussed, I think this is out-of-scope for this CL, will ...
5 years ago (2015-12-02 23:59:42 UTC) #33
felt
mattm, could you please take a look at the net/ssl DEPS addition and the tiny ...
5 years ago (2015-12-03 00:48:13 UTC) #34
mattm
lgtm
5 years ago (2015-12-03 00:51:51 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481213003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481213003/220001
5 years ago (2015-12-03 00:57:43 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:220001)
5 years ago (2015-12-03 03:49:12 UTC) #40
commit-bot: I haz the power
5 years ago (2015-12-03 03:49:49 UTC) #42
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/146e920a4cf5fda4c30bc348e16f81bfea5e3990
Cr-Commit-Position: refs/heads/master@{#362897}

Powered by Google App Engine
This is Rietveld 408576698