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

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: Rebase Created 5 years, 8 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 external_delegate_->SetCurrentDataListValues(values, labels); 764 external_delegate_->SetCurrentDataListValues(values, labels);
765 } 765 }
766 766
767 void AutofillManager::OnLoadedServerPredictions( 767 void AutofillManager::OnLoadedServerPredictions(
768 const std::string& response_xml) { 768 const std::string& response_xml) {
769 // Parse and store the server predictions. 769 // Parse and store the server predictions.
770 FormStructure::ParseQueryResponse(response_xml, form_structures_.get()); 770 FormStructure::ParseQueryResponse(response_xml, form_structures_.get());
771 771
772 // Forward form structures to the password generation manager to detect 772 // Forward form structures to the password generation manager to detect
773 // account creation forms. 773 // account creation forms.
774 driver_->DetectAccountCreationForms(form_structures_.get()); 774 driver_->PropagateAutofillPredictions(form_structures_.get());
775 775
776 // If the corresponding flag is set, annotate forms with the predicted types. 776 // If the corresponding flag is set, annotate forms with the predicted types.
777 driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get()); 777 driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get());
778 } 778 }
779 779
780 void AutofillManager::OnUnmaskResponse(const UnmaskResponse& response) { 780 void AutofillManager::OnUnmaskResponse(const UnmaskResponse& response) {
781 unmask_response_ = response; 781 unmask_response_ = response;
782 real_pan_request_timestamp_ = base::Time::Now(); 782 real_pan_request_timestamp_ = base::Time::Now();
783 real_pan_client_.UnmaskCard(unmasking_card_, response); 783 real_pan_client_.UnmaskCard(unmasking_card_, response);
784 } 784 }
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 return false; 1498 return false;
1499 1499
1500 // Disregard forms that we wouldn't ever autofill in the first place. 1500 // Disregard forms that we wouldn't ever autofill in the first place.
1501 if (!form.ShouldBeParsed()) 1501 if (!form.ShouldBeParsed())
1502 return false; 1502 return false;
1503 1503
1504 return true; 1504 return true;
1505 } 1505 }
1506 1506
1507 } // namespace autofill 1507 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_driver.h ('k') | components/autofill/core/browser/autofill_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698