OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/wallet/wallet_client.h" | 5 #include "components/autofill/browser/wallet/wallet_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
230 full_wallet_request.instrument_id); | 230 full_wallet_request.instrument_id); |
231 pending_request_body_.SetString(kSelectedAddressIdKey, | 231 pending_request_body_.SetString(kSelectedAddressIdKey, |
232 full_wallet_request.address_id); | 232 full_wallet_request.address_id); |
233 pending_request_body_.SetString( | 233 pending_request_body_.SetString( |
234 kMerchantDomainKey, | 234 kMerchantDomainKey, |
235 full_wallet_request.source_url.GetWithEmptyPath().spec()); | 235 full_wallet_request.source_url.GetWithEmptyPath().spec()); |
236 pending_request_body_.SetString(kGoogleTransactionIdKey, | 236 pending_request_body_.SetString(kGoogleTransactionIdKey, |
237 full_wallet_request.google_transaction_id); | 237 full_wallet_request.google_transaction_id); |
238 pending_request_body_.Set(kCartKey, | 238 pending_request_body_.Set(kCartKey, |
239 full_wallet_request.cart.ToDictionary().release()); | 239 full_wallet_request.cart.ToDictionary().release()); |
240 pending_request_body_.SetString( | 240 //pending_request_body_.SetString( |
241 kFeatureKey, | 241 // kFeatureKey, |
242 DialogTypeToFeatureString(full_wallet_request.dialog_type)); | 242 // DialogTypeToFeatureString(full_wallet_request.dialog_type)); |
Dan Beam
2013/03/13 01:43:57
sorry, ignore this
| |
243 | 243 |
244 scoped_ptr<base::ListValue> risk_capabilities_list(new base::ListValue()); | 244 scoped_ptr<base::ListValue> risk_capabilities_list(new base::ListValue()); |
245 for (std::vector<RiskCapability>::const_iterator it = | 245 for (std::vector<RiskCapability>::const_iterator it = |
246 full_wallet_request.risk_capabilities.begin(); | 246 full_wallet_request.risk_capabilities.begin(); |
247 it != full_wallet_request.risk_capabilities.end(); | 247 it != full_wallet_request.risk_capabilities.end(); |
248 ++it) { | 248 ++it) { |
249 risk_capabilities_list->AppendString(RiskCapabilityToString(*it)); | 249 risk_capabilities_list->AppendString(RiskCapabilityToString(*it)); |
250 } | 250 } |
251 pending_request_body_.Set(kRiskCapabilitiesKey, | 251 pending_request_body_.Set(kRiskCapabilitiesKey, |
252 risk_capabilities_list.release()); | 252 risk_capabilities_list.release()); |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
700 void WalletClient::OnNetworkError(int response_code) { | 700 void WalletClient::OnNetworkError(int response_code) { |
701 observer_->OnNetworkError(response_code); | 701 observer_->OnNetworkError(response_code); |
702 } | 702 } |
703 | 703 |
704 void WalletClient::OnMalformedResponse() { | 704 void WalletClient::OnMalformedResponse() { |
705 observer_->OnMalformedResponse(); | 705 observer_->OnMalformedResponse(); |
706 } | 706 } |
707 | 707 |
708 } // namespace wallet | 708 } // namespace wallet |
709 } // namespace autofill | 709 } // namespace autofill |
OLD | NEW |