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

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

Issue 1467063002: Introduce the ChromeControllerClient class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bugfix Created 5 years, 1 month 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 | « chrome/browser/ssl/bad_clock_blocking_page.cc ('k') | chrome/browser/ssl/cert_report_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ssl/captive_portal_blocking_page.cc
diff --git a/chrome/browser/ssl/captive_portal_blocking_page.cc b/chrome/browser/ssl/captive_portal_blocking_page.cc
index 652f66ab2cce5748163d2df62a0e45d6f786275e..adeca5bd33386079c88a42a8879183a254534078 100644
--- a/chrome/browser/ssl/captive_portal_blocking_page.cc
+++ b/chrome/browser/ssl/captive_portal_blocking_page.cc
@@ -18,6 +18,7 @@
#include "chrome/common/pref_names.h"
#include "components/captive_portal/captive_portal_detector.h"
#include "components/certificate_reporting/error_reporter.h"
+#include "components/security_interstitials/core/controller_client.h"
#include "components/url_formatter/url_formatter.h"
#include "components/wifi/wifi_service.h"
#include "content/public/browser/web_contents.h"
@@ -183,7 +184,7 @@ void CaptivePortalBlockingPage::PopulateInterstitialStrings(
if (cert_report_helper_)
cert_report_helper_->PopulateExtendedReportingOption(load_time_data);
else
- load_time_data->SetBoolean(interstitials::kDisplayCheckBox, false);
+ load_time_data->SetBoolean(security_interstitials::kDisplayCheckBox, false);
}
void CaptivePortalBlockingPage::CommandReceived(const std::string& command) {
@@ -196,7 +197,7 @@ void CaptivePortalBlockingPage::CommandReceived(const std::string& command) {
bool command_is_num = base::StringToInt(command, &command_num);
DCHECK(command_is_num) << command;
// Any command other than "open the login page" is ignored.
- if (command_num == CMD_OPEN_LOGIN) {
+ if (command_num == security_interstitials::CMD_OPEN_LOGIN) {
RecordUMA(OPEN_LOGIN_PAGE);
CaptivePortalTabHelper::OpenLoginTabForWebContents(web_contents(), true);
}
« no previous file with comments | « chrome/browser/ssl/bad_clock_blocking_page.cc ('k') | chrome/browser/ssl/cert_report_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698