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

Unified Diff: components/autofill/browser/wallet/wallet_client.cc

Issue 14836006: Deprecate Carts in Wallet code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/browser/wallet/wallet_client.cc
diff --git a/components/autofill/browser/wallet/wallet_client.cc b/components/autofill/browser/wallet/wallet_client.cc
index 4dbf5524e132e5fc05046de87ec5a37d52439c68..b6b5b35b2f776e6a9d8854f9b475088f3d612d66 100644
--- a/components/autofill/browser/wallet/wallet_client.cc
+++ b/components/autofill/browser/wallet/wallet_client.cc
@@ -178,7 +178,6 @@ AutofillMetrics::WalletRequiredActionMetric RequiredActionToUmaMetric(
const char kAcceptedLegalDocumentKey[] = "accepted_legal_document";
const char kApiKeyKey[] = "api_key";
const char kAuthResultKey[] = "auth_result";
-const char kCartKey[] = "cart";
const char kEncryptedOtpKey[] = "encrypted_otp";
const char kErrorTypeKey[] = "wallet_error.error_type";
const char kFeatureKey[] = "feature";
@@ -208,13 +207,11 @@ WalletClient::FullWalletRequest::FullWalletRequest(
const std::string& instrument_id,
const std::string& address_id,
const GURL& source_url,
- const Cart& cart,
const std::string& google_transaction_id,
const std::vector<RiskCapability> risk_capabilities)
: instrument_id(instrument_id),
address_id(address_id),
source_url(source_url),
- cart(cart),
google_transaction_id(google_transaction_id),
risk_capabilities(risk_capabilities) {}
@@ -305,8 +302,6 @@ void WalletClient::GetFullWallet(const FullWalletRequest& full_wallet_request) {
full_wallet_request.source_url.GetWithEmptyPath().spec());
pending_request_body_.SetString(kGoogleTransactionIdKey,
full_wallet_request.google_transaction_id);
- pending_request_body_.Set(kCartKey,
- full_wallet_request.cart.ToDictionary().release());
pending_request_body_.SetString(
kFeatureKey,
DialogTypeToFeatureString(delegate_->GetDialogType()));
« no previous file with comments | « components/autofill/browser/wallet/wallet_client.h ('k') | components/autofill/browser/wallet/wallet_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698