OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/autofill/core/browser/autofill_external_delegate.h" | 5 #include "components/autofill/core/browser/autofill_external_delegate.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/i18n/case_conversion.h" | 11 #include "base/i18n/case_conversion.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
14 #include "base/metrics/sparse_histogram.h" | 14 #include "base/metrics/sparse_histogram.h" |
15 #include "base/metrics/user_metrics.h" | 15 #include "base/metrics/user_metrics.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "components/autofill/core/browser/autocomplete_history_manager.h" | 20 #include "components/autofill/core/browser/autocomplete_history_manager.h" |
21 #include "components/autofill/core/browser/autofill_driver.h" | 21 #include "components/autofill/core/browser/autofill_driver.h" |
22 #include "components/autofill/core/browser/autofill_experiments.h" | 22 #include "components/autofill/core/browser/autofill_experiments.h" |
23 #include "components/autofill/core/browser/autofill_manager.h" | 23 #include "components/autofill/core/browser/autofill_manager.h" |
24 #include "components/autofill/core/browser/autofill_metrics.h" | 24 #include "components/autofill/core/browser/autofill_metrics.h" |
25 #include "components/autofill/core/browser/popup_item_ids.h" | 25 #include "components/autofill/core/browser/popup_item_ids.h" |
26 #include "components/autofill/core/common/autofill_util.h" | 26 #include "components/autofill/core/common/autofill_util.h" |
27 #include "grit/components_strings.h" | 27 #include "components/strings/grit/components_strings.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 | 29 |
30 namespace autofill { | 30 namespace autofill { |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 // Returns true if the suggestion entry is an Autofill warning message. | 34 // Returns true if the suggestion entry is an Autofill warning message. |
35 // Warning messages should display on top of suggestion list. | 35 // Warning messages should display on top of suggestion list. |
36 bool IsAutofillWarningEntry(int frontend_id) { | 36 bool IsAutofillWarningEntry(int frontend_id) { |
37 return frontend_id == | 37 return frontend_id == |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 const { | 391 const { |
392 if (IsKeyboardAccessoryEnabled()) { | 392 if (IsKeyboardAccessoryEnabled()) { |
393 return l10n_util::GetStringUTF16(IDS_AUTOFILL_OPTIONS_CONTENT_DESCRIPTION); | 393 return l10n_util::GetStringUTF16(IDS_AUTOFILL_OPTIONS_CONTENT_DESCRIPTION); |
394 } | 394 } |
395 return l10n_util::GetStringUTF16(is_credit_card_popup_ ? | 395 return l10n_util::GetStringUTF16(is_credit_card_popup_ ? |
396 IDS_AUTOFILL_CREDIT_CARD_OPTIONS_POPUP : | 396 IDS_AUTOFILL_CREDIT_CARD_OPTIONS_POPUP : |
397 IDS_AUTOFILL_OPTIONS_POPUP); | 397 IDS_AUTOFILL_OPTIONS_POPUP); |
398 } | 398 } |
399 | 399 |
400 } // namespace autofill | 400 } // namespace autofill |
OLD | NEW |