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 2e3e1209daf43849c9611919f23b2f903866b8c9..110130b475ff64a584cfe4e32f4c93dc588a3f67 100644 |
--- a/chrome/browser/ssl/cert_report_helper.cc |
+++ b/chrome/browser/ssl/cert_report_helper.cc |
@@ -15,12 +15,15 @@ |
#include "chrome/browser/ssl/ssl_cert_reporter.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/grit/generated_resources.h" |
+#include "components/security_interstitials/core/controller_client.h" |
#include "components/security_interstitials/core/metrics_helper.h" |
#include "components/variations/variations_associated_data.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/web_contents.h" |
#include "ui/base/l10n/l10n_util.h" |
+using security_interstitials::ControllerClient; |
+ |
// Constants for the HTTPSErrorReporter Finch experiment |
const char CertReportHelper::kFinchExperimentName[] = "ReportCertificateErrors"; |
const char CertReportHelper::kFinchGroupShowPossiblySend[] = |
@@ -55,21 +58,21 @@ void CertReportHelper::PopulateExtendedReportingOption( |
// by policy. |
const bool show = ShouldShowCertificateReporterCheckbox(); |
- load_time_data->SetBoolean(interstitials::kDisplayCheckBox, show); |
+ load_time_data->SetBoolean(security_interstitials::kDisplayCheckBox, show); |
if (!show) |
return; |
load_time_data->SetBoolean( |
- interstitials::kBoxChecked, |
+ security_interstitials::kBoxChecked, |
IsPrefEnabled(prefs::kSafeBrowsingExtendedReportingEnabled)); |
const std::string privacy_link = base::StringPrintf( |
- interstitials::kPrivacyLinkHtml, |
- SecurityInterstitialPage::CMD_OPEN_REPORTING_PRIVACY, |
+ security_interstitials::kPrivacyLinkHtml, |
+ ControllerClient::CMD_OPEN_REPORTING_PRIVACY, |
l10n_util::GetStringUTF8(IDS_SAFE_BROWSING_PRIVACY_POLICY_PAGE).c_str()); |
load_time_data->SetString( |
- interstitials::kOptInLink, |
+ security_interstitials::kOptInLink, |
l10n_util::GetStringFUTF16(IDS_SAFE_BROWSING_MALWARE_REPORTING_AGREE, |
base::UTF8ToUTF16(privacy_link))); |
} |