| 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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 void AutofillManager::OnAddPasswordFormMapping( | 669 void AutofillManager::OnAddPasswordFormMapping( |
| 670 const FormFieldData& form, | 670 const FormFieldData& form, |
| 671 const PasswordFormFillData& fill_data) { | 671 const PasswordFormFillData& fill_data) { |
| 672 if (external_delegate_) | 672 if (external_delegate_) |
| 673 external_delegate_->AddPasswordFormMapping(form, fill_data); | 673 external_delegate_->AddPasswordFormMapping(form, fill_data); |
| 674 } | 674 } |
| 675 | 675 |
| 676 void AutofillManager::OnShowPasswordSuggestions( | 676 void AutofillManager::OnShowPasswordSuggestions( |
| 677 const FormFieldData& field, | 677 const FormFieldData& field, |
| 678 const gfx::RectF& bounds, | 678 const gfx::RectF& bounds, |
| 679 const std::vector<base::string16>& suggestions) { | 679 const std::vector<base::string16>& suggestions, |
| 680 if (external_delegate_) | 680 const std::vector<base::string16>& realms) { |
| 681 external_delegate_->OnShowPasswordSuggestions(suggestions, field, bounds); | 681 if (external_delegate_) { |
| 682 external_delegate_->OnShowPasswordSuggestions(suggestions, |
| 683 realms, |
| 684 field, |
| 685 bounds); |
| 686 } |
| 682 } | 687 } |
| 683 | 688 |
| 684 void AutofillManager::OnSetDataList(const std::vector<base::string16>& values, | 689 void AutofillManager::OnSetDataList(const std::vector<base::string16>& values, |
| 685 const std::vector<base::string16>& labels, | 690 const std::vector<base::string16>& labels, |
| 686 const std::vector<base::string16>& icons, | 691 const std::vector<base::string16>& icons, |
| 687 const std::vector<int>& unique_ids) { | 692 const std::vector<int>& unique_ids) { |
| 688 if (labels.size() != values.size() || | 693 if (labels.size() != values.size() || |
| 689 icons.size() != values.size() || | 694 icons.size() != values.size() || |
| 690 unique_ids.size() != values.size()) { | 695 unique_ids.size() != values.size()) { |
| 691 return; | 696 return; |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1240 | 1245 |
| 1241 void AutofillManager::UpdateInitialInteractionTimestamp( | 1246 void AutofillManager::UpdateInitialInteractionTimestamp( |
| 1242 const TimeTicks& interaction_timestamp) { | 1247 const TimeTicks& interaction_timestamp) { |
| 1243 if (initial_interaction_timestamp_.is_null() || | 1248 if (initial_interaction_timestamp_.is_null() || |
| 1244 interaction_timestamp < initial_interaction_timestamp_) { | 1249 interaction_timestamp < initial_interaction_timestamp_) { |
| 1245 initial_interaction_timestamp_ = interaction_timestamp; | 1250 initial_interaction_timestamp_ = interaction_timestamp; |
| 1246 } | 1251 } |
| 1247 } | 1252 } |
| 1248 | 1253 |
| 1249 } // namespace autofill | 1254 } // namespace autofill |
| OLD | NEW |