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/autocomplete_history_manager.h" | 5 #include "components/autofill/core/browser/autocomplete_history_manager.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "components/autofill/core/browser/autofill_driver.h" | 12 #include "components/autofill/core/browser/autofill_driver.h" |
13 #include "components/autofill/core/browser/autofill_external_delegate.h" | 13 #include "components/autofill/core/browser/autofill_external_delegate.h" |
14 #include "components/autofill/core/browser/autofill_manager_delegate.h" | 14 #include "components/autofill/core/browser/autofill_manager_delegate.h" |
15 #include "components/autofill/core/browser/validation.h" | 15 #include "components/autofill/core/browser/validation.h" |
16 #include "components/autofill/core/common/autofill_messages.h" | |
17 #include "components/autofill/core/common/autofill_pref_names.h" | 16 #include "components/autofill/core/common/autofill_pref_names.h" |
18 #include "components/autofill/core/common/form_data.h" | 17 #include "components/autofill/core/common/form_data.h" |
19 | 18 |
20 namespace autofill { | 19 namespace autofill { |
21 namespace { | 20 namespace { |
22 | 21 |
23 // Limit on the number of suggestions to appear in the pop-up menu under an | 22 // Limit on the number of suggestions to appear in the pop-up menu under an |
24 // text input element in a form. | 23 // text input element in a form. |
25 const int kMaxAutocompleteMenuItems = 6; | 24 const int kMaxAutocompleteMenuItems = 6; |
26 | 25 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 autofill_unique_ids_); | 187 autofill_unique_ids_); |
189 | 188 |
190 query_id_ = 0; | 189 query_id_ = 0; |
191 autofill_values_.clear(); | 190 autofill_values_.clear(); |
192 autofill_labels_.clear(); | 191 autofill_labels_.clear(); |
193 autofill_icons_.clear(); | 192 autofill_icons_.clear(); |
194 autofill_unique_ids_.clear(); | 193 autofill_unique_ids_.clear(); |
195 } | 194 } |
196 | 195 |
197 } // namespace autofill | 196 } // namespace autofill |
OLD | NEW |