| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/security_interstitials/core/bad_clock_ui.h" | 5 #include "components/security_interstitials/core/bad_clock_ui.h" |
| 6 | 6 |
| 7 #include "base/i18n/time_formatting.h" | 7 #include "base/i18n/time_formatting.h" |
| 8 #include "components/security_interstitials/core/common_string_util.h" | 8 #include "components/security_interstitials/core/common_string_util.h" |
| 9 #include "components/security_interstitials/core/metrics_helper.h" | 9 #include "components/security_interstitials/core/metrics_helper.h" |
| 10 #include "grit/components_strings.h" | 10 #include "grit/components_strings.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 case CMD_OPEN_DATE_SETTINGS: | 101 case CMD_OPEN_DATE_SETTINGS: |
| 102 if (!controller_->CanLaunchDateAndTimeSettings()) | 102 if (!controller_->CanLaunchDateAndTimeSettings()) |
| 103 NOTREACHED() << "This platform does not support date settings"; | 103 NOTREACHED() << "This platform does not support date settings"; |
| 104 controller_->metrics_helper()->RecordUserInteraction( | 104 controller_->metrics_helper()->RecordUserInteraction( |
| 105 security_interstitials::MetricsHelper::OPEN_TIME_SETTINGS); | 105 security_interstitials::MetricsHelper::OPEN_TIME_SETTINGS); |
| 106 controller_->LaunchDateAndTimeSettings(); | 106 controller_->LaunchDateAndTimeSettings(); |
| 107 break; | 107 break; |
| 108 case CMD_OPEN_REPORTING_PRIVACY: | 108 case CMD_OPEN_REPORTING_PRIVACY: |
| 109 controller_->OpenExtendedReportingPrivacyPolicy(); | 109 controller_->OpenExtendedReportingPrivacyPolicy(); |
| 110 break; | 110 break; |
| 111 case CMD_OPEN_WHITEPAPER: |
| 112 controller_->OpenExtendedReportingWhitepaper(); |
| 113 break; |
| 111 case CMD_PROCEED: | 114 case CMD_PROCEED: |
| 112 case CMD_OPEN_HELP_CENTER: | 115 case CMD_OPEN_HELP_CENTER: |
| 113 case CMD_RELOAD: | 116 case CMD_RELOAD: |
| 114 case CMD_OPEN_DIAGNOSTIC: | 117 case CMD_OPEN_DIAGNOSTIC: |
| 115 case CMD_OPEN_LOGIN: | 118 case CMD_OPEN_LOGIN: |
| 116 case CMD_REPORT_PHISHING_ERROR: | 119 case CMD_REPORT_PHISHING_ERROR: |
| 117 // Not supported by the bad clock error page. | 120 // Not supported by the bad clock error page. |
| 118 NOTREACHED() << "Unsupported command: " << command; | 121 NOTREACHED() << "Unsupported command: " << command; |
| 119 case CMD_ERROR: | 122 case CMD_ERROR: |
| 120 case CMD_TEXT_FOUND: | 123 case CMD_TEXT_FOUND: |
| 121 case CMD_TEXT_NOT_FOUND: | 124 case CMD_TEXT_NOT_FOUND: |
| 122 // Commands are only for testing. | 125 // Commands are only for testing. |
| 123 NOTREACHED() << "Unexpected command: " << command; | 126 NOTREACHED() << "Unexpected command: " << command; |
| 124 } | 127 } |
| 125 } | 128 } |
| 126 | 129 |
| 127 } // security_interstitials | 130 } // security_interstitials |
| OLD | NEW |