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

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

Issue 2903383002: Limit certificate error reports to running in official builds (Closed)
Patch Set: fix more tests Created 3 years, 7 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.h
diff --git a/chrome/browser/ssl/cert_report_helper.h b/chrome/browser/ssl/cert_report_helper.h
index 8982bcea6430357ebdbbe740007039d30f925582..0222524d625966666c1136486eca0dd2ae2a6df3 100644
--- a/chrome/browser/ssl/cert_report_helper.h
+++ b/chrome/browser/ssl/cert_report_helper.h
@@ -48,6 +48,10 @@ class CertReportHelper {
virtual ~CertReportHelper();
+ // This method can be called by tests to fake an official build (reports are
+ // only sent from official builds).
+ static void SetFakeOfficialBuildForTesting();
+
// Populates data that JavaScript code on the interstitial uses to show
// the checkbox.
void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data);

Powered by Google App Engine
This is Rietveld 408576698