| 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 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 } | 887 } |
| 888 | 888 |
| 889 FieldTypeSet non_empty_types; | 889 FieldTypeSet non_empty_types; |
| 890 personal_data_->GetNonEmptyTypes(&non_empty_types); | 890 personal_data_->GetNonEmptyTypes(&non_empty_types); |
| 891 | 891 |
| 892 download_manager_.StartUploadRequest(submitted_form, was_autofilled, | 892 download_manager_.StartUploadRequest(submitted_form, was_autofilled, |
| 893 non_empty_types); | 893 non_empty_types); |
| 894 } | 894 } |
| 895 | 895 |
| 896 void AutofillManager::Reset() { | 896 void AutofillManager::Reset() { |
| 897 form_structures_.reset(); | 897 form_structures_.clear(); |
| 898 has_logged_autofill_enabled_ = false; | 898 has_logged_autofill_enabled_ = false; |
| 899 has_logged_address_suggestions_count_ = false; | 899 has_logged_address_suggestions_count_ = false; |
| 900 did_show_suggestions_ = false; | 900 did_show_suggestions_ = false; |
| 901 user_did_type_ = false; | 901 user_did_type_ = false; |
| 902 user_did_autofill_ = false; | 902 user_did_autofill_ = false; |
| 903 user_did_edit_autofilled_field_ = false; | 903 user_did_edit_autofilled_field_ = false; |
| 904 forms_loaded_timestamp_ = TimeTicks(); | 904 forms_loaded_timestamp_ = TimeTicks(); |
| 905 initial_interaction_timestamp_ = TimeTicks(); | 905 initial_interaction_timestamp_ = TimeTicks(); |
| 906 | 906 |
| 907 if (external_delegate_) | 907 if (external_delegate_) |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1411 *profile_guid = IDToGUID(profile_id); | 1411 *profile_guid = IDToGUID(profile_id); |
| 1412 } | 1412 } |
| 1413 | 1413 |
| 1414 void AutofillManager::UpdateInitialInteractionTimestamp( | 1414 void AutofillManager::UpdateInitialInteractionTimestamp( |
| 1415 const TimeTicks& interaction_timestamp) { | 1415 const TimeTicks& interaction_timestamp) { |
| 1416 if (initial_interaction_timestamp_.is_null() || | 1416 if (initial_interaction_timestamp_.is_null() || |
| 1417 interaction_timestamp < initial_interaction_timestamp_) { | 1417 interaction_timestamp < initial_interaction_timestamp_) { |
| 1418 initial_interaction_timestamp_ = interaction_timestamp; | 1418 initial_interaction_timestamp_ = interaction_timestamp; |
| 1419 } | 1419 } |
| 1420 } | 1420 } |
| OLD | NEW |