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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 #endif // #if defined(TOOLKIT_VIEWS) | 769 #endif // #if defined(TOOLKIT_VIEWS) |
770 | 770 |
771 // If the corresponding flag is set, annotate forms with the predicted types. | 771 // If the corresponding flag is set, annotate forms with the predicted types. |
772 driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get()); | 772 driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get()); |
773 } | 773 } |
774 | 774 |
775 void AutofillManager::OnDidEndTextFieldEditing() { | 775 void AutofillManager::OnDidEndTextFieldEditing() { |
776 external_delegate_->DidEndTextFieldEditing(); | 776 external_delegate_->DidEndTextFieldEditing(); |
777 } | 777 } |
778 | 778 |
779 void AutofillManager::OnClickFailed(autofill::AutocheckoutStatus status) { | 779 void AutofillManager::OnAutocheckoutPageCompleted( |
780 autocheckout_manager_.OnClickFailed(status); | 780 autofill::AutocheckoutStatus status) { |
| 781 autocheckout_manager_.OnAutocheckoutPageCompleted(status); |
781 } | 782 } |
782 | 783 |
783 std::string AutofillManager::GetAutocheckoutURLPrefix() const { | 784 std::string AutofillManager::GetAutocheckoutURLPrefix() const { |
784 if (!driver_->GetWebContents()) | 785 if (!driver_->GetWebContents()) |
785 return std::string(); | 786 return std::string(); |
786 | 787 |
787 autofill::autocheckout::WhitelistManager* whitelist_manager = | 788 autofill::autocheckout::WhitelistManager* whitelist_manager = |
788 manager_delegate_->GetAutocheckoutWhitelistManager(); | 789 manager_delegate_->GetAutocheckoutWhitelistManager(); |
789 | 790 |
790 return whitelist_manager ? whitelist_manager->GetMatchedURLPrefix( | 791 return whitelist_manager ? whitelist_manager->GetMatchedURLPrefix( |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 | 1221 |
1221 void AutofillManager::UpdateInitialInteractionTimestamp( | 1222 void AutofillManager::UpdateInitialInteractionTimestamp( |
1222 const TimeTicks& interaction_timestamp) { | 1223 const TimeTicks& interaction_timestamp) { |
1223 if (initial_interaction_timestamp_.is_null() || | 1224 if (initial_interaction_timestamp_.is_null() || |
1224 interaction_timestamp < initial_interaction_timestamp_) { | 1225 interaction_timestamp < initial_interaction_timestamp_) { |
1225 initial_interaction_timestamp_ = interaction_timestamp; | 1226 initial_interaction_timestamp_ = interaction_timestamp; |
1226 } | 1227 } |
1227 } | 1228 } |
1228 | 1229 |
1229 } // namespace autofill | 1230 } // namespace autofill |
OLD | NEW |