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

Unified Diff: ios/chrome/browser/ssl/ios_ssl_blocking_page.mm

Issue 1772143002: Use network time for bad clock interstitial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IOS Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ssl/ios_ssl_blocking_page.mm
diff --git a/ios/chrome/browser/ssl/ios_ssl_blocking_page.mm b/ios/chrome/browser/ssl/ios_ssl_blocking_page.mm
index 1b0ebc92ad0c7852d24d55b39179521d63515d5c..073604558585c116f7f6c0c7a7de3c30bee7f374 100644
--- a/ios/chrome/browser/ssl/ios_ssl_blocking_page.mm
+++ b/ios/chrome/browser/ssl/ios_ssl_blocking_page.mm
@@ -12,6 +12,7 @@
#include "components/prefs/pref_service.h"
#include "components/security_interstitials/core/metrics_helper.h"
#include "components/security_interstitials/core/ssl_error_ui.h"
+#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#include "ios/chrome/browser/interstitials/ios_chrome_controller_client.h"
#include "ios/chrome/browser/interstitials/ios_chrome_metrics_helper.h"
@@ -103,9 +104,10 @@ IOSSSLBlockingPage::IOSSSLBlockingPage(
new IOSChromeMetricsHelper(web_state, request_url, reporting_info);
controller_->set_metrics_helper(make_scoped_ptr(ios_chrome_metrics_helper));
- ssl_error_ui_.reset(new SSLErrorUI(request_url, cert_error, ssl_info,
- options_mask, time_triggered, languages,
- controller_.get()));
+ ssl_error_ui_.reset(new SSLErrorUI(
+ request_url, cert_error, ssl_info, options_mask, time_triggered,
+ GetApplicationContext()->GetNetworkTimeTracker(), languages,
+ controller_.get()));
// Creating an interstitial without showing (e.g. from chrome://interstitials)
// it leaks memory, so don't create it here.

Powered by Google App Engine
This is Rietveld 408576698