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 "components/autofill/browser/autofill_manager.h" | 5 #include "components/autofill/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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 void AutofillManager::OnAddPasswordFormMapping( | 722 void AutofillManager::OnAddPasswordFormMapping( |
723 const FormFieldData& form, | 723 const FormFieldData& form, |
724 const PasswordFormFillData& fill_data) { | 724 const PasswordFormFillData& fill_data) { |
725 if (external_delegate_) | 725 if (external_delegate_) |
726 external_delegate_->AddPasswordFormMapping(form, fill_data); | 726 external_delegate_->AddPasswordFormMapping(form, fill_data); |
727 } | 727 } |
728 | 728 |
729 void AutofillManager::OnShowPasswordSuggestions( | 729 void AutofillManager::OnShowPasswordSuggestions( |
730 const FormFieldData& field, | 730 const FormFieldData& field, |
731 const gfx::RectF& bounds, | 731 const gfx::RectF& bounds, |
732 const std::vector<base::string16>& suggestions) { | 732 const std::vector<base::string16>& suggestions, |
733 if (external_delegate_) | 733 const std::vector<base::string16>& realms) { |
734 external_delegate_->OnShowPasswordSuggestions(suggestions, field, bounds); | 734 if (external_delegate_) { |
| 735 external_delegate_->OnShowPasswordSuggestions(suggestions, |
| 736 realms, |
| 737 field, |
| 738 bounds); |
| 739 } |
735 } | 740 } |
736 | 741 |
737 void AutofillManager::OnSetDataList(const std::vector<base::string16>& values, | 742 void AutofillManager::OnSetDataList(const std::vector<base::string16>& values, |
738 const std::vector<base::string16>& labels, | 743 const std::vector<base::string16>& labels, |
739 const std::vector<base::string16>& icons, | 744 const std::vector<base::string16>& icons, |
740 const std::vector<int>& unique_ids) { | 745 const std::vector<int>& unique_ids) { |
741 if (labels.size() != values.size() || | 746 if (labels.size() != values.size() || |
742 icons.size() != values.size() || | 747 icons.size() != values.size() || |
743 unique_ids.size() != values.size()) { | 748 unique_ids.size() != values.size()) { |
744 return; | 749 return; |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 | 1298 |
1294 void AutofillManager::UpdateInitialInteractionTimestamp( | 1299 void AutofillManager::UpdateInitialInteractionTimestamp( |
1295 const TimeTicks& interaction_timestamp) { | 1300 const TimeTicks& interaction_timestamp) { |
1296 if (initial_interaction_timestamp_.is_null() || | 1301 if (initial_interaction_timestamp_.is_null() || |
1297 interaction_timestamp < initial_interaction_timestamp_) { | 1302 interaction_timestamp < initial_interaction_timestamp_) { |
1298 initial_interaction_timestamp_ = interaction_timestamp; | 1303 initial_interaction_timestamp_ = interaction_timestamp; |
1299 } | 1304 } |
1300 } | 1305 } |
1301 | 1306 |
1302 } // namespace autofill | 1307 } // namespace autofill |
OLD | NEW |