OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/autofill/autofill_manager.h" | 5 #include "chrome/browser/autofill/autofill_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/guid.h" | 16 #include "base/guid.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
| 18 #include "base/prefs/public/pref_service_base.h" |
18 #include "base/string16.h" | 19 #include "base/string16.h" |
19 #include "base/string_util.h" | 20 #include "base/string_util.h" |
20 #include "base/supports_user_data.h" | 21 #include "base/supports_user_data.h" |
21 #include "base/threading/sequenced_worker_pool.h" | 22 #include "base/threading/sequenced_worker_pool.h" |
22 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
23 #include "chrome/browser/api/infobars/infobar_service.h" | 24 #include "chrome/browser/api/infobars/infobar_service.h" |
24 #include "chrome/browser/api/prefs/pref_service_base.h" | |
25 #include "chrome/browser/api/sync/profile_sync_service_base.h" | 25 #include "chrome/browser/api/sync/profile_sync_service_base.h" |
26 #include "chrome/browser/autofill/autocomplete_history_manager.h" | 26 #include "chrome/browser/autofill/autocomplete_history_manager.h" |
27 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" | 27 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" |
28 #include "chrome/browser/autofill/autofill_external_delegate.h" | 28 #include "chrome/browser/autofill/autofill_external_delegate.h" |
29 #include "chrome/browser/autofill/autofill_field.h" | 29 #include "chrome/browser/autofill/autofill_field.h" |
30 #include "chrome/browser/autofill/autofill_manager_delegate.h" | 30 #include "chrome/browser/autofill/autofill_manager_delegate.h" |
31 #include "chrome/browser/autofill/autofill_metrics.h" | 31 #include "chrome/browser/autofill/autofill_metrics.h" |
32 #include "chrome/browser/autofill/autofill_profile.h" | 32 #include "chrome/browser/autofill/autofill_profile.h" |
33 #include "chrome/browser/autofill/autofill_type.h" | 33 #include "chrome/browser/autofill/autofill_type.h" |
34 #include "chrome/browser/autofill/credit_card.h" | 34 #include "chrome/browser/autofill/credit_card.h" |
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 *profile_guid = IDToGUID(profile_id); | 1413 *profile_guid = IDToGUID(profile_id); |
1414 } | 1414 } |
1415 | 1415 |
1416 void AutofillManager::UpdateInitialInteractionTimestamp( | 1416 void AutofillManager::UpdateInitialInteractionTimestamp( |
1417 const TimeTicks& interaction_timestamp) { | 1417 const TimeTicks& interaction_timestamp) { |
1418 if (initial_interaction_timestamp_.is_null() || | 1418 if (initial_interaction_timestamp_.is_null() || |
1419 interaction_timestamp < initial_interaction_timestamp_) { | 1419 interaction_timestamp < initial_interaction_timestamp_) { |
1420 initial_interaction_timestamp_ = interaction_timestamp; | 1420 initial_interaction_timestamp_ = interaction_timestamp; |
1421 } | 1421 } |
1422 } | 1422 } |
OLD | NEW |