| 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 "components/autofill/browser/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/pref_service.h" | 18 #include "base/prefs/pref_service.h" |
| 19 #include "base/string16.h" | 19 #include "base/string16.h" |
| 20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/threading/sequenced_worker_pool.h" | 21 #include "base/threading/sequenced_worker_pool.h" |
| 22 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
| 23 #include "chrome/browser/autofill/autocheckout/whitelist_manager.h" | |
| 24 #include "chrome/browser/autofill/autocheckout_manager.h" | |
| 25 #include "chrome/browser/autofill/autocomplete_history_manager.h" | |
| 26 #include "chrome/browser/autofill/autofill_country.h" | |
| 27 #include "chrome/browser/autofill/autofill_external_delegate.h" | |
| 28 #include "chrome/browser/autofill/autofill_field.h" | |
| 29 #include "chrome/browser/autofill/autofill_manager_delegate.h" | |
| 30 #include "chrome/browser/autofill/autofill_metrics.h" | |
| 31 #include "chrome/browser/autofill/autofill_profile.h" | |
| 32 #include "chrome/browser/autofill/autofill_type.h" | |
| 33 #include "chrome/browser/autofill/credit_card.h" | |
| 34 #include "chrome/browser/autofill/form_structure.h" | |
| 35 #include "chrome/browser/autofill/password_generator.h" | |
| 36 #include "chrome/browser/autofill/personal_data_manager.h" | |
| 37 #include "chrome/browser/autofill/personal_data_manager_factory.h" | |
| 38 #include "chrome/browser/autofill/phone_number.h" | |
| 39 #include "chrome/browser/autofill/phone_number_i18n.h" | |
| 40 #include "chrome/common/chrome_notification_types.h" | 23 #include "chrome/common/chrome_notification_types.h" |
| 24 #include "components/autofill/browser/autocheckout/whitelist_manager.h" |
| 25 #include "components/autofill/browser/autocheckout_manager.h" |
| 26 #include "components/autofill/browser/autocomplete_history_manager.h" |
| 27 #include "components/autofill/browser/autofill_country.h" |
| 28 #include "components/autofill/browser/autofill_external_delegate.h" |
| 29 #include "components/autofill/browser/autofill_field.h" |
| 30 #include "components/autofill/browser/autofill_manager_delegate.h" |
| 31 #include "components/autofill/browser/autofill_metrics.h" |
| 32 #include "components/autofill/browser/autofill_profile.h" |
| 33 #include "components/autofill/browser/autofill_type.h" |
| 34 #include "components/autofill/browser/credit_card.h" |
| 35 #include "components/autofill/browser/form_structure.h" |
| 36 #include "components/autofill/browser/password_generator.h" |
| 37 #include "components/autofill/browser/personal_data_manager.h" |
| 38 #include "components/autofill/browser/phone_number.h" |
| 39 #include "components/autofill/browser/phone_number_i18n.h" |
| 41 #include "components/autofill/common/autofill_messages.h" | 40 #include "components/autofill/common/autofill_messages.h" |
| 42 #include "components/autofill/common/autofill_pref_names.h" | 41 #include "components/autofill/common/autofill_pref_names.h" |
| 43 #include "components/autofill/common/autofill_switches.h" | 42 #include "components/autofill/common/autofill_switches.h" |
| 44 #include "components/autofill/common/form_data.h" | 43 #include "components/autofill/common/form_data.h" |
| 45 #include "components/autofill/common/form_data_predictions.h" | 44 #include "components/autofill/common/form_data_predictions.h" |
| 46 #include "components/autofill/common/form_field_data.h" | 45 #include "components/autofill/common/form_field_data.h" |
| 47 #include "components/autofill/common/password_form_fill_data.h" | 46 #include "components/autofill/common/password_form_fill_data.h" |
| 48 #include "components/user_prefs/pref_registry_syncable.h" | 47 #include "components/user_prefs/pref_registry_syncable.h" |
| 49 #include "content/public/browser/browser_context.h" | 48 #include "content/public/browser/browser_context.h" |
| 50 #include "content/public/browser/browser_thread.h" | 49 #include "content/public/browser/browser_thread.h" |
| (...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 *profile_guid = IDToGUID(profile_id); | 1312 *profile_guid = IDToGUID(profile_id); |
| 1314 } | 1313 } |
| 1315 | 1314 |
| 1316 void AutofillManager::UpdateInitialInteractionTimestamp( | 1315 void AutofillManager::UpdateInitialInteractionTimestamp( |
| 1317 const TimeTicks& interaction_timestamp) { | 1316 const TimeTicks& interaction_timestamp) { |
| 1318 if (initial_interaction_timestamp_.is_null() || | 1317 if (initial_interaction_timestamp_.is_null() || |
| 1319 interaction_timestamp < initial_interaction_timestamp_) { | 1318 interaction_timestamp < initial_interaction_timestamp_) { |
| 1320 initial_interaction_timestamp_ = interaction_timestamp; | 1319 initial_interaction_timestamp_ = interaction_timestamp; |
| 1321 } | 1320 } |
| 1322 } | 1321 } |
| OLD | NEW |