| 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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 return; | 642 return; |
| 643 | 643 |
| 644 personal_data_->RemoveByGUID(data_model->guid()); | 644 personal_data_->RemoveByGUID(data_model->guid()); |
| 645 } | 645 } |
| 646 | 646 |
| 647 void AutofillManager::RemoveAutocompleteEntry(const base::string16& name, | 647 void AutofillManager::RemoveAutocompleteEntry(const base::string16& name, |
| 648 const base::string16& value) { | 648 const base::string16& value) { |
| 649 autocomplete_history_manager_->OnRemoveAutocompleteEntry(name, value); | 649 autocomplete_history_manager_->OnRemoveAutocompleteEntry(name, value); |
| 650 } | 650 } |
| 651 | 651 |
| 652 bool AutofillManager::IsShowingUnmaskPrompt() { |
| 653 return unmasking_card_.Compare(CreditCard()) != 0; |
| 654 } |
| 655 |
| 652 const std::vector<FormStructure*>& AutofillManager::GetFormStructures() { | 656 const std::vector<FormStructure*>& AutofillManager::GetFormStructures() { |
| 653 return form_structures_.get(); | 657 return form_structures_.get(); |
| 654 } | 658 } |
| 655 | 659 |
| 656 void AutofillManager::SetTestDelegate(AutofillManagerTestDelegate* delegate) { | 660 void AutofillManager::SetTestDelegate(AutofillManagerTestDelegate* delegate) { |
| 657 test_delegate_ = delegate; | 661 test_delegate_ = delegate; |
| 658 } | 662 } |
| 659 | 663 |
| 660 void AutofillManager::OnSetDataList(const std::vector<base::string16>& values, | 664 void AutofillManager::OnSetDataList(const std::vector<base::string16>& values, |
| 661 const std::vector<base::string16>& labels) { | 665 const std::vector<base::string16>& labels) { |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1325 return false; | 1329 return false; |
| 1326 | 1330 |
| 1327 // Disregard forms that we wouldn't ever autofill in the first place. | 1331 // Disregard forms that we wouldn't ever autofill in the first place. |
| 1328 if (!form.ShouldBeParsed()) | 1332 if (!form.ShouldBeParsed()) |
| 1329 return false; | 1333 return false; |
| 1330 | 1334 |
| 1331 return true; | 1335 return true; |
| 1332 } | 1336 } |
| 1333 | 1337 |
| 1334 } // namespace autofill | 1338 } // namespace autofill |
| OLD | NEW |