| Index: chrome/browser/ui/webui/interstitials/interstitial_ui.cc
|
| diff --git a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
|
| index 6bdd42fe0cf6259fcb9ab08ec018770cdc0eea26..1d2703a989a1644ca94b0f9e6d2f72301dbd1c7b 100644
|
| --- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
|
| +++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
|
| @@ -51,6 +51,7 @@ SSLBlockingPage* CreateSSLBlockingPage(content::WebContents* web_contents) {
|
| GURL request_url("https://example.com");
|
| bool overridable = false;
|
| bool strict_enforcement = false;
|
| +
|
| std::string url_param;
|
| if (net::GetValueForKeyInQuery(web_contents->GetURL(),
|
| "url",
|
| @@ -70,6 +71,14 @@ SSLBlockingPage* CreateSSLBlockingPage(content::WebContents* web_contents) {
|
| &strict_enforcement_param)) {
|
| strict_enforcement = strict_enforcement_param == "1";
|
| }
|
| +
|
| + std::string clock_error_param;
|
| + if (net::GetValueForKeyInQuery(web_contents->GetURL(),
|
| + "clock_error",
|
| + &clock_error_param) == 1) {
|
| + cert_error = net::ERR_CERT_DATE_INVALID;
|
| + }
|
| +
|
| net::SSLInfo ssl_info;
|
| ssl_info.cert = new net::X509Certificate(
|
| request_url.host(), "CA", base::Time::Max(), base::Time::Max());
|
| @@ -128,8 +137,7 @@ SafeBrowsingBlockingPage* CreateSafeBrowsingBlockingPage(
|
| web_contents,
|
| resource);
|
| }
|
| -
|
| -} // namespace
|
| +} // namespace
|
|
|
| InterstitialUI::InterstitialUI(content::WebUI* web_ui)
|
| : WebUIController(web_ui) {
|
| @@ -191,7 +199,9 @@ void InterstitialHTMLSource::StartDataRequest(
|
| "<a href='ssl'>example.com</a><br>"
|
| "<a href='ssl?url=https://google.com'>SSL (google.com)</a><br>"
|
| "<a href='ssl?overridable=1&strict_enforcement=0'>"
|
| - " example.com (Overridable)</a>"
|
| + " example.com (Overridable)</a><br>"
|
| + "<a href='ssl?clock_error=1&url=https://yourclockiswrong.com'>"
|
| + " yourclockiswrong.com</a><br>"
|
| "<br><br>"
|
| "<h3>SafeBrowsing</h3>"
|
| "<a href='safebrowsing?type=malware'>Malware</a><br>"
|
| @@ -202,6 +212,7 @@ void InterstitialHTMLSource::StartDataRequest(
|
| " Client Side Phishing</a><br>"
|
| "</body></html>";
|
| }
|
| +
|
| scoped_refptr<base::RefCountedString> html_bytes = new base::RefCountedString;
|
| html_bytes->data().assign(html.begin(), html.end());
|
| callback.Run(html_bytes.get());
|
|
|