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

Unified Diff: components/autofill/core/browser/wallet/real_pan_wallet_client.cc

Issue 929433004: More updates to getrealpan (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/wallet/real_pan_wallet_client.cc
diff --git a/components/autofill/core/browser/wallet/real_pan_wallet_client.cc b/components/autofill/core/browser/wallet/real_pan_wallet_client.cc
index 7f72077abb99259ed1c14a7b4d4b7e8e0a40306b..5a12b3e37fee90e59e60f5281dce66dfb12bbd5e 100644
--- a/components/autofill/core/browser/wallet/real_pan_wallet_client.cc
+++ b/components/autofill/core/browser/wallet/real_pan_wallet_client.cc
@@ -67,8 +67,7 @@ void RealPanWalletClient::UnmaskCard(const CreditCard& card,
request_dict.SetString("encrypted_cvc", "__param:s7e_13_cvc");
request_dict.SetString("credit_card_id", card.server_id());
request_dict.SetString("risk_data_base64", risk_data);
- request_dict.Set("client_context",
- make_scoped_ptr(new base::DictionaryValue()));
+ request_dict.Set("context", make_scoped_ptr(new base::DictionaryValue()));
std::string json_request;
base::JSONWriter::Write(&request_dict, &json_request);
@@ -76,6 +75,9 @@ void RealPanWalletClient::UnmaskCard(const CreditCard& card,
net::EscapeUrlEncodedData(json_request, true).c_str(),
net::EscapeUrlEncodedData(cvc, true).c_str());
request_->SetUploadData("application/x-www-form-urlencoded", post_body);
+ // TODO(estade): remove this when possible.
+ request_->AddExtraRequestHeader(
+ net::HttpRequestHeaders::kAcceptEncoding + std::string(": chunked;q=0"));
if (access_token_.empty())
StartTokenFetch();
@@ -183,7 +185,9 @@ void RealPanWalletClient::StartTokenFetch() {
}
void RealPanWalletClient::SetOAuth2TokenAndStartRequest() {
- request_->AddExtraRequestHeader("Authorization: Bearer " + access_token_);
Evan Stade 2015/02/13 22:22:33 (no behavior change, just reused the constant)
+ request_->AddExtraRequestHeader(net::HttpRequestHeaders::kAuthorization +
+ std::string(": Bearer ") + access_token_);
+
request_->Start();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698