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

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

Issue 957603002: Strip cookies from getrealpan request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: much simpler 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 | « components/autofill/core/browser/wallet/real_pan_wallet_client.h ('k') | 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 913f60412b5b8fba24408fbcf211c1131692df86..5020a472a63dbd35c3986b8d8c4dc2da2bea8840 100644
--- a/components/autofill/core/browser/wallet/real_pan_wallet_client.cc
+++ b/components/autofill/core/browser/wallet/real_pan_wallet_client.cc
@@ -17,6 +17,7 @@
#include "components/autofill/core/common/autofill_switches.h"
#include "google_apis/gaia/identity_provider.h"
#include "net/base/escape.h"
+#include "net/base/load_flags.h"
#include "net/http/http_status_code.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_context_getter.h"
@@ -105,6 +106,8 @@ void RealPanWalletClient::UnmaskCard(
request_.reset(net::URLFetcher::Create(
0, GetUnmaskCardRequestUrl(), net::URLFetcher::POST, this));
request_->SetRequestContext(context_getter_.get());
+ request_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
+ net::LOAD_DO_NOT_SEND_COOKIES | net::LOAD_DISABLE_CACHE);
base::DictionaryValue request_dict;
request_dict.SetString("encrypted_cvc", "__param:s7e_13_cvc");
« no previous file with comments | « components/autofill/core/browser/wallet/real_pan_wallet_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698