OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/autofill/core/browser/autofill_manager.h" | 5 #include "components/autofill/core/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> |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 const CreditCard* imported_credit_card; | 732 const CreditCard* imported_credit_card; |
733 if (!personal_data_->ImportFormData(submitted_form, &imported_credit_card)) | 733 if (!personal_data_->ImportFormData(submitted_form, &imported_credit_card)) |
734 return; | 734 return; |
735 | 735 |
736 // If credit card information was submitted, we need to confirm whether to | 736 // If credit card information was submitted, we need to confirm whether to |
737 // save it. | 737 // save it. |
738 if (imported_credit_card) { | 738 if (imported_credit_card) { |
739 manager_delegate_->ConfirmSaveCreditCard( | 739 manager_delegate_->ConfirmSaveCreditCard( |
740 *metric_logger_, | 740 *metric_logger_, |
741 *imported_credit_card, | 741 *imported_credit_card, |
742 base::Bind(&PersonalDataManager::SaveImportedCreditCard, | 742 base::Bind( |
743 base::Unretained(personal_data_), *imported_credit_card)); | 743 base::IgnoreResult(&PersonalDataManager::SaveImportedCreditCard), |
| 744 base::Unretained(personal_data_), *imported_credit_card)); |
744 } | 745 } |
745 } | 746 } |
746 | 747 |
747 // Note that |submitted_form| is passed as a pointer rather than as a reference | 748 // Note that |submitted_form| is passed as a pointer rather than as a reference |
748 // so that we can get memory management right across threads. Note also that we | 749 // so that we can get memory management right across threads. Note also that we |
749 // explicitly pass in all the time stamps of interest, as the cached ones might | 750 // explicitly pass in all the time stamps of interest, as the cached ones might |
750 // get reset before this method executes. | 751 // get reset before this method executes. |
751 void AutofillManager::UploadFormDataAsyncCallback( | 752 void AutofillManager::UploadFormDataAsyncCallback( |
752 const FormStructure* submitted_form, | 753 const FormStructure* submitted_form, |
753 const TimeTicks& load_time, | 754 const TimeTicks& load_time, |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 | 1129 |
1129 void AutofillManager::UpdateInitialInteractionTimestamp( | 1130 void AutofillManager::UpdateInitialInteractionTimestamp( |
1130 const TimeTicks& interaction_timestamp) { | 1131 const TimeTicks& interaction_timestamp) { |
1131 if (initial_interaction_timestamp_.is_null() || | 1132 if (initial_interaction_timestamp_.is_null() || |
1132 interaction_timestamp < initial_interaction_timestamp_) { | 1133 interaction_timestamp < initial_interaction_timestamp_) { |
1133 initial_interaction_timestamp_ = interaction_timestamp; | 1134 initial_interaction_timestamp_ = interaction_timestamp; |
1134 } | 1135 } |
1135 } | 1136 } |
1136 | 1137 |
1137 } // namespace autofill | 1138 } // namespace autofill |
OLD | NEW |