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

Unified Diff: chrome/browser/ssl/cert_report_helper.cc

Issue 2964283002: Add chrome channel to cert logger reports (Closed)
Patch Set: Revert unneeded change Created 3 years, 6 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: chrome/browser/ssl/cert_report_helper.cc
diff --git a/chrome/browser/ssl/cert_report_helper.cc b/chrome/browser/ssl/cert_report_helper.cc
index 418750ad5280fa60daf4e4ca6e547cb53d4aa4b4..923ee3d72639605075a1c6b4e86d2de2fb08d198 100644
--- a/chrome/browser/ssl/cert_report_helper.cc
+++ b/chrome/browser/ssl/cert_report_helper.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ssl/ssl_cert_reporter.h"
+#include "chrome/common/channel_info.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/common/safe_browsing_prefs.h"
@@ -125,6 +126,8 @@ void CertReportHelper::FinishCertCollection(
report.AddNetworkTimeInfo(g_browser_process->network_time_tracker());
+ report.AddChromeChannel(chrome::GetChannel());
+
estark 2017/07/01 17:19:01 It would be nice to have a test for this line... b
Mustafa Acer 2017/07/01 20:14:03 The obvious way is to write a browser test that: -
estark 2017/07/02 00:09:12 That sounds good! I was thinking that I'm not sure
meacer 2017/07/05 20:13:19 Just chatted with Sasha. It seems easier to just a
report.SetInterstitialInfo(
interstitial_reason_, user_proceeded,
overridable_
« no previous file with comments | « no previous file | components/certificate_reporting/DEPS » ('j') | components/certificate_reporting/error_report.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698