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

Unified Diff: components/certificate_reporting/error_report.cc

Issue 2575233003: Record the time when the interstitial is constructed (Closed)
Patch Set: Created 4 years 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/certificate_reporting/error_report.cc
diff --git a/components/certificate_reporting/error_report.cc b/components/certificate_reporting/error_report.cc
index 366932d97f5c5304151788416e81ca577022e250..fac5e4bfdf02fc662b80a9b02a72898a18a438c9 100644
--- a/components/certificate_reporting/error_report.cc
+++ b/components/certificate_reporting/error_report.cc
@@ -100,7 +100,8 @@ bool ErrorReport::Serialize(std::string* output) const {
void ErrorReport::SetInterstitialInfo(
const InterstitialReason& interstitial_reason,
const ProceedDecision& proceed_decision,
- const Overridable& overridable) {
+ const Overridable& overridable,
+ const base::Time& interstitial_time) {
CertLoggerInterstitialInfo* interstitial_info =
cert_report_->mutable_interstitial_info();
@@ -121,6 +122,8 @@ void ErrorReport::SetInterstitialInfo(
interstitial_info->set_user_proceeded(proceed_decision == USER_PROCEEDED);
interstitial_info->set_overridable(overridable == INTERSTITIAL_OVERRIDABLE);
+ interstitial_info->set_interstitial_created_time_usec(
+ interstitial_time.ToInternalValue());
}
void ErrorReport::AddNetworkTimeInfo(
« no previous file with comments | « components/certificate_reporting/error_report.h ('k') | components/certificate_reporting/error_report_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698