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> |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "chrome/browser/autofill/autofill_metrics.h" | 33 #include "chrome/browser/autofill/autofill_metrics.h" |
34 #include "chrome/browser/autofill/autofill_profile.h" | 34 #include "chrome/browser/autofill/autofill_profile.h" |
35 #include "chrome/browser/autofill/autofill_type.h" | 35 #include "chrome/browser/autofill/autofill_type.h" |
36 #include "chrome/browser/autofill/credit_card.h" | 36 #include "chrome/browser/autofill/credit_card.h" |
37 #include "chrome/browser/autofill/form_structure.h" | 37 #include "chrome/browser/autofill/form_structure.h" |
38 #include "chrome/browser/autofill/password_generator.h" | 38 #include "chrome/browser/autofill/password_generator.h" |
39 #include "chrome/browser/autofill/personal_data_manager.h" | 39 #include "chrome/browser/autofill/personal_data_manager.h" |
40 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 40 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
41 #include "chrome/browser/autofill/phone_number.h" | 41 #include "chrome/browser/autofill/phone_number.h" |
42 #include "chrome/browser/autofill/phone_number_i18n.h" | 42 #include "chrome/browser/autofill/phone_number_i18n.h" |
43 #include "chrome/browser/prefs/pref_registry_syncable.h" | |
44 #include "chrome/common/autofill_messages.h" | 43 #include "chrome/common/autofill_messages.h" |
45 #include "chrome/common/chrome_notification_types.h" | 44 #include "chrome/common/chrome_notification_types.h" |
46 #include "chrome/common/chrome_switches.h" | 45 #include "chrome/common/chrome_switches.h" |
47 #include "chrome/common/form_data.h" | 46 #include "chrome/common/form_data.h" |
48 #include "chrome/common/form_data_predictions.h" | 47 #include "chrome/common/form_data_predictions.h" |
49 #include "chrome/common/form_field_data.h" | 48 #include "chrome/common/form_field_data.h" |
50 #include "chrome/common/password_form_fill_data.h" | 49 #include "chrome/common/password_form_fill_data.h" |
51 #include "chrome/common/pref_names.h" | 50 #include "chrome/common/pref_names.h" |
52 #include "chrome/common/url_constants.h" | 51 #include "chrome/common/url_constants.h" |
| 52 #include "components/user_prefs/pref_registry_syncable.h" |
53 #include "content/public/browser/browser_context.h" | 53 #include "content/public/browser/browser_context.h" |
54 #include "content/public/browser/browser_thread.h" | 54 #include "content/public/browser/browser_thread.h" |
55 #include "content/public/browser/notification_service.h" | 55 #include "content/public/browser/notification_service.h" |
56 #include "content/public/browser/notification_source.h" | 56 #include "content/public/browser/notification_source.h" |
57 #include "content/public/browser/render_view_host.h" | 57 #include "content/public/browser/render_view_host.h" |
58 #include "content/public/browser/web_contents.h" | 58 #include "content/public/browser/web_contents.h" |
59 #include "content/public/browser/web_contents_view.h" | 59 #include "content/public/browser/web_contents_view.h" |
60 #include "googleurl/src/gurl.h" | 60 #include "googleurl/src/gurl.h" |
61 #include "grit/generated_resources.h" | 61 #include "grit/generated_resources.h" |
62 #include "ipc/ipc_message_macros.h" | 62 #include "ipc/ipc_message_macros.h" |
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 *profile_guid = IDToGUID(profile_id); | 1319 *profile_guid = IDToGUID(profile_id); |
1320 } | 1320 } |
1321 | 1321 |
1322 void AutofillManager::UpdateInitialInteractionTimestamp( | 1322 void AutofillManager::UpdateInitialInteractionTimestamp( |
1323 const TimeTicks& interaction_timestamp) { | 1323 const TimeTicks& interaction_timestamp) { |
1324 if (initial_interaction_timestamp_.is_null() || | 1324 if (initial_interaction_timestamp_.is_null() || |
1325 interaction_timestamp < initial_interaction_timestamp_) { | 1325 interaction_timestamp < initial_interaction_timestamp_) { |
1326 initial_interaction_timestamp_ = interaction_timestamp; | 1326 initial_interaction_timestamp_ = interaction_timestamp; |
1327 } | 1327 } |
1328 } | 1328 } |
OLD | NEW |