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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 const string16& value) { | 782 const string16& value) { |
783 autocomplete_history_manager_.OnRemoveAutocompleteEntry(name, value); | 783 autocomplete_history_manager_.OnRemoveAutocompleteEntry(name, value); |
784 } | 784 } |
785 | 785 |
786 void AutofillManager::ShowRequestAutocompleteDialog( | 786 void AutofillManager::ShowRequestAutocompleteDialog( |
787 const FormData& form, | 787 const FormData& form, |
788 const GURL& source_url, | 788 const GURL& source_url, |
789 const content::SSLStatus& ssl_status, | 789 const content::SSLStatus& ssl_status, |
790 const base::Callback<void(const FormStructure*)>& callback) { | 790 const base::Callback<void(const FormStructure*)>& callback) { |
791 manager_delegate_->ShowRequestAutocompleteDialog( | 791 manager_delegate_->ShowRequestAutocompleteDialog( |
792 form, source_url, ssl_status, callback); | 792 form, source_url, ssl_status, *metric_logger_, callback); |
793 } | 793 } |
794 | 794 |
795 void AutofillManager::RequestAutocompleteDialogClosed() { | 795 void AutofillManager::RequestAutocompleteDialogClosed() { |
796 manager_delegate_->RequestAutocompleteDialogClosed(); | 796 manager_delegate_->RequestAutocompleteDialogClosed(); |
797 } | 797 } |
798 | 798 |
799 void AutofillManager::OnAddPasswordFormMapping( | 799 void AutofillManager::OnAddPasswordFormMapping( |
800 const FormFieldData& form, | 800 const FormFieldData& form, |
801 const PasswordFormFillData& fill_data) { | 801 const PasswordFormFillData& fill_data) { |
802 if (external_delegate_) | 802 if (external_delegate_) |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1307 *profile_guid = IDToGUID(profile_id); | 1307 *profile_guid = IDToGUID(profile_id); |
1308 } | 1308 } |
1309 | 1309 |
1310 void AutofillManager::UpdateInitialInteractionTimestamp( | 1310 void AutofillManager::UpdateInitialInteractionTimestamp( |
1311 const TimeTicks& interaction_timestamp) { | 1311 const TimeTicks& interaction_timestamp) { |
1312 if (initial_interaction_timestamp_.is_null() || | 1312 if (initial_interaction_timestamp_.is_null() || |
1313 interaction_timestamp < initial_interaction_timestamp_) { | 1313 interaction_timestamp < initial_interaction_timestamp_) { |
1314 initial_interaction_timestamp_ = interaction_timestamp; | 1314 initial_interaction_timestamp_ = interaction_timestamp; |
1315 } | 1315 } |
1316 } | 1316 } |
OLD | NEW |