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

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

Issue 2254353002: Prompt for CVC in credit card assist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better callback names Created 4 years, 3 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 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 AutofillMetrics::UPLOAD_NOT_OFFERED_GET_UPLOAD_DETAILS_FAILED); 985 AutofillMetrics::UPLOAD_NOT_OFFERED_GET_UPLOAD_DETAILS_FAILED);
986 } 986 }
987 } 987 }
988 988
989 void AutofillManager::OnDidUploadCard( 989 void AutofillManager::OnDidUploadCard(
990 AutofillClient::PaymentsRpcResult result) { 990 AutofillClient::PaymentsRpcResult result) {
991 // We don't do anything user-visible if the upload attempt fails. 991 // We don't do anything user-visible if the upload attempt fails.
992 // TODO(jdonnelly): Log duration. 992 // TODO(jdonnelly): Log duration.
993 } 993 }
994 994
995 void AutofillManager::OnFullCardDetails(const CreditCard& card, 995 void AutofillManager::OnFullCardRequestSucceeded(const CreditCard& card,
996 const base::string16& cvc) { 996 const base::string16& cvc) {
997 credit_card_form_event_logger_->OnDidFillSuggestion(masked_card_); 997 credit_card_form_event_logger_->OnDidFillSuggestion(masked_card_);
998 FillCreditCardForm(unmasking_query_id_, unmasking_form_, unmasking_field_, 998 FillCreditCardForm(unmasking_query_id_, unmasking_form_, unmasking_field_,
999 card, cvc); 999 card, cvc);
1000 masked_card_ = CreditCard(); 1000 masked_card_ = CreditCard();
1001 } 1001 }
1002 1002
1003 void AutofillManager::OnFullCardError() { 1003 void AutofillManager::OnFullCardRequestFailed() {
1004 driver_->RendererShouldClearPreviewedForm(); 1004 driver_->RendererShouldClearPreviewedForm();
1005 } 1005 }
1006 1006
1007 void AutofillManager::OnUserDidAcceptUpload() { 1007 void AutofillManager::OnUserDidAcceptUpload() {
1008 user_did_accept_upload_prompt_ = true; 1008 user_did_accept_upload_prompt_ = true;
1009 if (!upload_request_.risk_data.empty()) { 1009 if (!upload_request_.risk_data.empty()) {
1010 upload_request_.app_locale = app_locale_; 1010 upload_request_.app_locale = app_locale_;
1011 payments_client_->UploadCard(upload_request_); 1011 payments_client_->UploadCard(upload_request_);
1012 } 1012 }
1013 } 1013 }
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
2075 if (i > 0) 2075 if (i > 0)
2076 fputs("Next oldest form:\n", file); 2076 fputs("Next oldest form:\n", file);
2077 } 2077 }
2078 fputs("\n", file); 2078 fputs("\n", file);
2079 2079
2080 fclose(file); 2080 fclose(file);
2081 } 2081 }
2082 #endif // ENABLE_FORM_DEBUG_DUMP 2082 #endif // ENABLE_FORM_DEBUG_DUMP
2083 2083
2084 } // namespace autofill 2084 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager.h ('k') | components/autofill/core/browser/payments/full_card_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698