OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/safe_browsing_error_ui.h" | 5 #include "components/security_interstitials/core/safe_browsing_error_ui.h" |
6 | 6 |
7 #include "base/i18n/time_formatting.h" | 7 #include "base/i18n/time_formatting.h" |
8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "components/google/core/browser/google_util.h" | 11 #include "components/google/core/browser/google_util.h" |
12 #include "components/security_interstitials/core/common_string_util.h" | 12 #include "components/security_interstitials/core/common_string_util.h" |
13 #include "components/security_interstitials/core/metrics_helper.h" | 13 #include "components/security_interstitials/core/metrics_helper.h" |
14 #include "grit/components_strings.h" | 14 #include "components/strings/grit/components_strings.h" |
15 #include "net/base/escape.h" | 15 #include "net/base/escape.h" |
16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
17 | 17 |
18 namespace security_interstitials { | 18 namespace security_interstitials { |
19 namespace { | 19 namespace { |
20 | 20 |
21 // URL for the Help Center article on Safe Browsing warnings. | 21 // URL for the Help Center article on Safe Browsing warnings. |
22 const char kLearnMore[] = "https://support.google.com/chrome/answer/99020"; | 22 const char kLearnMore[] = "https://support.google.com/chrome/answer/99020"; |
23 | 23 |
24 // For malware interstitial pages, we link the problematic URL to Google's | 24 // For malware interstitial pages, we link the problematic URL to Google's |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 l10n_util::GetStringFUTF16( | 302 l10n_util::GetStringFUTF16( |
303 display_options_.is_scout_reporting_enabled | 303 display_options_.is_scout_reporting_enabled |
304 ? IDS_SAFE_BROWSING_SCOUT_REPORTING_AGREE | 304 ? IDS_SAFE_BROWSING_SCOUT_REPORTING_AGREE |
305 : IDS_SAFE_BROWSING_MALWARE_REPORTING_AGREE, | 305 : IDS_SAFE_BROWSING_MALWARE_REPORTING_AGREE, |
306 base::UTF8ToUTF16(privacy_link))); | 306 base::UTF8ToUTF16(privacy_link))); |
307 load_time_data->SetBoolean(security_interstitials::kBoxChecked, | 307 load_time_data->SetBoolean(security_interstitials::kBoxChecked, |
308 display_options_.is_extended_reporting_enabled); | 308 display_options_.is_extended_reporting_enabled); |
309 } | 309 } |
310 | 310 |
311 } // security_interstitials | 311 } // security_interstitials |
OLD | NEW |