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

Unified Diff: chrome/browser/ssl/bad_clock_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
Index: chrome/browser/ssl/bad_clock_blocking_page.cc
diff --git a/chrome/browser/ssl/bad_clock_blocking_page.cc b/chrome/browser/ssl/bad_clock_blocking_page.cc
index 6ad49b92c2d168e8c8160b553314537ca1587dbd..a3b3a7b5f827a673487d62c5e6f768e0e94d7d9f 100644
--- a/chrome/browser/ssl/bad_clock_blocking_page.cc
+++ b/chrome/browser/ssl/bad_clock_blocking_page.cc
@@ -29,6 +29,7 @@
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
#include "components/google/core/browser/google_util.h"
+#include "components/security_interstitials/core/controller_client.h"
#include "components/ssl_errors/error_classification.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/cert_store.h"
@@ -326,32 +327,32 @@ void BadClockBlockingPage::CommandReceived(const std::string& command) {
bool retval = base::StringToInt(command, &cmd);
DCHECK(retval);
switch (cmd) {
- case CMD_DONT_PROCEED:
+ case security_interstitials::CMD_DONT_PROCEED:
interstitial_page()->DontProceed();
break;
- case CMD_DO_REPORT:
+ case security_interstitials::CMD_DO_REPORT:
SetReportingPreference(true);
break;
- case CMD_DONT_REPORT:
+ case security_interstitials::CMD_DONT_REPORT:
SetReportingPreference(false);
break;
- case CMD_SHOW_MORE_SECTION:
+ case security_interstitials::CMD_SHOW_MORE_SECTION:
metrics_helper()->RecordUserInteraction(
security_interstitials::MetricsHelper::SHOW_ADVANCED);
break;
- case CMD_OPEN_DATE_SETTINGS:
+ case security_interstitials::CMD_OPEN_DATE_SETTINGS:
metrics_helper()->RecordUserInteraction(
security_interstitials::MetricsHelper::OPEN_TIME_SETTINGS);
content::BrowserThread::PostTask(content::BrowserThread::FILE, FROM_HERE,
base::Bind(&LaunchDateAndTimeSettings));
break;
- case CMD_OPEN_REPORTING_PRIVACY:
+ case security_interstitials::CMD_OPEN_REPORTING_PRIVACY:
OpenExtendedReportingPrivacyPolicy();
break;
- case CMD_PROCEED:
- case CMD_OPEN_HELP_CENTER:
- case CMD_RELOAD:
- case CMD_OPEN_DIAGNOSTIC:
+ case security_interstitials::CMD_PROCEED:
+ case security_interstitials::CMD_OPEN_HELP_CENTER:
+ case security_interstitials::CMD_RELOAD:
+ case security_interstitials::CMD_OPEN_DIAGNOSTIC:
// Not supported for the bad clock interstitial.
NOTREACHED() << "Unexpected command: " << command;
}
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc ('k') | chrome/browser/ssl/captive_portal_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698