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/common_string_util.h" | 5 #include "components/security_interstitials/core/common_string_util.h" |
6 | 6 |
7 #include "base/feature_list.h" | 7 #include "base/feature_list.h" |
8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
9 #include "base/i18n/time_formatting.h" | 9 #include "base/i18n/time_formatting.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "components/strings/grit/components_strings.h" |
11 #include "components/url_formatter/url_formatter.h" | 12 #include "components/url_formatter/url_formatter.h" |
12 #include "grit/components_strings.h" | |
13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 const base::Feature kSecurityWarningIconUpdate{ | 17 const base::Feature kSecurityWarningIconUpdate{ |
18 "SecurityWarningIconUpdate", base::FEATURE_DISABLED_BY_DEFAULT}; | 18 "SecurityWarningIconUpdate", base::FEATURE_DISABLED_BY_DEFAULT}; |
19 } // namespace | 19 } // namespace |
20 | 20 |
21 namespace security_interstitials { | 21 namespace security_interstitials { |
22 | 22 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 void PopulateNewIconStrings(base::DictionaryValue* load_time_data) { | 59 void PopulateNewIconStrings(base::DictionaryValue* load_time_data) { |
60 load_time_data->SetBoolean( | 60 load_time_data->SetBoolean( |
61 "iconUpdate", base::FeatureList::IsEnabled(kSecurityWarningIconUpdate)); | 61 "iconUpdate", base::FeatureList::IsEnabled(kSecurityWarningIconUpdate)); |
62 } | 62 } |
63 | 63 |
64 } // namespace common_string_util | 64 } // namespace common_string_util |
65 | 65 |
66 } // namespace security_interstitials | 66 } // namespace security_interstitials |
OLD | NEW |