Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: components/autofill/core/browser/autofill_manager.cc

Issue 872713005: autofill - Keep showing form preview while card unmasking prompt is up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/autofill/core/browser/autofill_manager.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698