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

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

Issue 1028163002: Processing USERNAME reply from Autofill server in Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small nit Created 5 years, 9 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
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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 external_delegate_->SetCurrentDataListValues(values, labels); 734 external_delegate_->SetCurrentDataListValues(values, labels);
735 } 735 }
736 736
737 void AutofillManager::OnLoadedServerPredictions( 737 void AutofillManager::OnLoadedServerPredictions(
738 const std::string& response_xml) { 738 const std::string& response_xml) {
739 // Parse and store the server predictions. 739 // Parse and store the server predictions.
740 FormStructure::ParseQueryResponse(response_xml, form_structures_.get()); 740 FormStructure::ParseQueryResponse(response_xml, form_structures_.get());
741 741
742 // Forward form structures to the password generation manager to detect 742 // Forward form structures to the password generation manager to detect
743 // account creation forms. 743 // account creation forms.
744 driver_->DetectAccountCreationForms(form_structures_.get()); 744 driver_->PropagateAutofillPredictions(form_structures_.get());
745 745
746 // If the corresponding flag is set, annotate forms with the predicted types. 746 // If the corresponding flag is set, annotate forms with the predicted types.
747 driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get()); 747 driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get());
748 } 748 }
749 749
750 void AutofillManager::OnUnmaskResponse(const UnmaskResponse& response) { 750 void AutofillManager::OnUnmaskResponse(const UnmaskResponse& response) {
751 unmask_response_ = response; 751 unmask_response_ = response;
752 real_pan_client_.UnmaskCard(unmasking_card_, response); 752 real_pan_client_.UnmaskCard(unmasking_card_, response);
753 } 753 }
754 754
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 return false; 1465 return false;
1466 1466
1467 // Disregard forms that we wouldn't ever autofill in the first place. 1467 // Disregard forms that we wouldn't ever autofill in the first place.
1468 if (!form.ShouldBeParsed()) 1468 if (!form.ShouldBeParsed())
1469 return false; 1469 return false;
1470 1470
1471 return true; 1471 return true;
1472 } 1472 }
1473 1473
1474 } // namespace autofill 1474 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698