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

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

Issue 1035023002: Adding the Finch code for the certificate error reporter experiment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698