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

Unified Diff: components/security_interstitials/core/bad_clock_ui.h

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: components/security_interstitials/core/bad_clock_ui.h
diff --git a/components/security_interstitials/core/bad_clock_ui.h b/components/security_interstitials/core/bad_clock_ui.h
index 2ec5c6323e15c897a8d5a7923f669921bf293721..e6ae0a1997178b24f4a6484715f205886725fa43 100644
--- a/components/security_interstitials/core/bad_clock_ui.h
+++ b/components/security_interstitials/core/bad_clock_ui.h
@@ -14,6 +14,10 @@
#include "net/ssl/ssl_info.h"
#include "url/gurl.h"
+namespace network_time {
+class NetworkTimeTracker;
+}
+
namespace security_interstitials {
// Provides UI for SSL errors caused by clock misconfigurations.
@@ -23,6 +27,7 @@ class BadClockUI {
int cert_error, // Should correspond to a NET_ERROR
const net::SSLInfo& ssl_info,
const base::Time& time_triggered, // Time the error was triggered
+ const network_time::NetworkTimeTracker* network_time,
estark 2016/03/08 23:17:36 same nit here: |network_time_tracker| (and elsewhe
mab 2016/03/09 23:35:27 Done.
const std::string& languages,
ControllerClient* controller_);
~BadClockUI();
@@ -39,6 +44,7 @@ class BadClockUI {
const base::Time time_triggered_;
const std::string languages_;
ControllerClient* controller_;
+ const network_time::NetworkTimeTracker* network_time_;
DISALLOW_COPY_AND_ASSIGN(BadClockUI);
};

Powered by Google App Engine
This is Rietveld 408576698