Index: chrome/browser/ssl/ssl_blocking_page.cc |
diff --git a/chrome/browser/ssl/ssl_blocking_page.cc b/chrome/browser/ssl/ssl_blocking_page.cc |
index e6083f8768ecf1a12308fb8d693f8b38bc584562..b2134cc7fd3f1882576af57573f44efe9a1f1c40 100644 |
--- a/chrome/browser/ssl/ssl_blocking_page.cc |
+++ b/chrome/browser/ssl/ssl_blocking_page.cc |
@@ -80,6 +80,11 @@ using content::NavigationEntry; |
namespace { |
+bool SendFraudulentCertificateChain() { |
estark
2015/03/27 01:22:02
I think we should name the experiment |Certificate
estark
2015/03/27 01:22:02
Maybe put this down with the other helper function
fahl
2015/03/27 01:28:24
Sure, I just put it there so no one forgets to rem
fahl
2015/03/27 01:59:08
Done.
|
+ return base::FieldTrialList::FindFullName("FraudulentCertificateCollector") == |
+ "FCC"; |
+} |
+ |
// URL for help page. |
const char kHelpURL[] = "https://support.google.com/chrome/answer/4454607"; |
@@ -663,8 +668,9 @@ void SSLBlockingPage::FinishCertCollection() { |
if (certificate_report_callback_for_testing_.is_null()) |
estark
2015/03/27 01:22:01
This bit can go inside the `if` statement as well
fahl
2015/03/27 01:59:07
Done.
|
scoped_callback.Reset(base::Bind(&base::DoNothing)); |
- safe_browsing_ui_manager_->ReportInvalidCertificateChain( |
- request_url().host(), ssl_info_, scoped_callback.Release()); |
+ if (SendFraudulentCertificateChain()) |
estark
2015/03/27 01:22:01
I would use curly braces since the body spans more
fahl
2015/03/27 01:59:07
Done.
|
+ safe_browsing_ui_manager_->ReportInvalidCertificateChain( |
+ request_url().host(), ssl_info_, scoped_callback.Release()); |
} |
// static |