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

Unified Diff: components/image_fetcher/image_data_fetcher.cc

Issue 2756633003: [Image Fetcher] Add support to disable cookies (Closed)
Patch Set: Rebased. Created 3 years, 9 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 | components/image_fetcher/image_data_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/image_fetcher/image_data_fetcher.cc
diff --git a/components/image_fetcher/image_data_fetcher.cc b/components/image_fetcher/image_data_fetcher.cc
index 204fa95d7e80df557d859271fbe6674c3df7b2bc..56e55ddaccc0a37902f87abcc1d6c8b218f64a2a 100644
--- a/components/image_fetcher/image_data_fetcher.cc
+++ b/components/image_fetcher/image_data_fetcher.cc
@@ -70,6 +70,9 @@ void ImageDataFetcher::FetchImageData(
request->url_fetcher->SetRequestContext(url_request_context_getter_.get());
request->url_fetcher->SetReferrer(referrer);
request->url_fetcher->SetReferrerPolicy(referrer_policy);
+ request->url_fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
+ net::LOAD_DO_NOT_SAVE_COOKIES |
+ net::LOAD_DO_NOT_SEND_AUTH_DATA);
request->url_fetcher->Start();
pending_requests_[request->url_fetcher.get()] = std::move(request);
« no previous file with comments | « no previous file | components/image_fetcher/image_data_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698