OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/superfish_error_ui.h" | 5 #include "components/security_interstitials/core/superfish_error_ui.h" |
6 | 6 |
7 #include "components/security_interstitials/core/common_string_util.h" | 7 #include "components/security_interstitials/core/common_string_util.h" |
8 #include "components/security_interstitials/core/controller_client.h" | 8 #include "components/security_interstitials/core/controller_client.h" |
9 #include "components/security_interstitials/core/metrics_helper.h" | 9 #include "components/security_interstitials/core/metrics_helper.h" |
10 #include "components/strings/grit/components_strings.h" | 10 #include "components/strings/grit/components_strings.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 ssl_info, | 31 ssl_info, |
32 display_options, | 32 display_options, |
33 time_triggered, | 33 time_triggered, |
34 controller) {} | 34 controller) {} |
35 | 35 |
36 void SuperfishErrorUI::PopulateStringsForHTML( | 36 void SuperfishErrorUI::PopulateStringsForHTML( |
37 base::DictionaryValue* load_time_data) { | 37 base::DictionaryValue* load_time_data) { |
38 common_string_util::PopulateSSLDebuggingStrings(ssl_info(), time_triggered(), | 38 common_string_util::PopulateSSLDebuggingStrings(ssl_info(), time_triggered(), |
39 load_time_data); | 39 load_time_data); |
40 | 40 |
| 41 load_time_data->SetString("type", "SSL"); |
41 load_time_data->SetBoolean("overridable", false); | 42 load_time_data->SetBoolean("overridable", false); |
42 load_time_data->SetBoolean("bad_clock", false); | 43 load_time_data->SetBoolean("bad_clock", false); |
43 load_time_data->SetBoolean("hide_primary_button", true); | 44 load_time_data->SetBoolean("hide_primary_button", true); |
44 load_time_data->SetString("tabTitle", | 45 load_time_data->SetString("tabTitle", |
45 l10n_util::GetStringUTF16(IDS_SSL_V2_TITLE)); | 46 l10n_util::GetStringUTF16(IDS_SSL_V2_TITLE)); |
46 load_time_data->SetString( | 47 load_time_data->SetString( |
47 "heading", l10n_util::GetStringUTF16(IDS_SSL_SUPERFISH_HEADING)); | 48 "heading", l10n_util::GetStringUTF16(IDS_SSL_SUPERFISH_HEADING)); |
48 load_time_data->SetString( | 49 load_time_data->SetString( |
49 "primaryParagraph", | 50 "primaryParagraph", |
50 l10n_util::GetStringUTF16(IDS_SSL_SUPERFISH_PRIMARY_PARAGRAPH)); | 51 l10n_util::GetStringUTF16(IDS_SSL_SUPERFISH_PRIMARY_PARAGRAPH)); |
(...skipping 10 matching lines...) Expand all Loading... |
61 if (command == CMD_OPEN_HELP_CENTER) { | 62 if (command == CMD_OPEN_HELP_CENTER) { |
62 controller()->metrics_helper()->RecordUserInteraction( | 63 controller()->metrics_helper()->RecordUserInteraction( |
63 security_interstitials::MetricsHelper::SHOW_LEARN_MORE); | 64 security_interstitials::MetricsHelper::SHOW_LEARN_MORE); |
64 controller()->OpenUrlInCurrentTab(GURL(kHelpURL)); | 65 controller()->OpenUrlInCurrentTab(GURL(kHelpURL)); |
65 return; | 66 return; |
66 } | 67 } |
67 SSLErrorUI::HandleCommand(command); | 68 SSLErrorUI::HandleCommand(command); |
68 } | 69 } |
69 | 70 |
70 } // namespace security_interstitials | 71 } // namespace security_interstitials |
OLD | NEW |