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

Unified Diff: content/browser/geolocation/network_location_request.cc

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 8 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
Index: content/browser/geolocation/network_location_request.cc
diff --git a/content/browser/geolocation/network_location_request.cc b/content/browser/geolocation/network_location_request.cc
index 6ffcb22fb6600c6d5f2d0a9e82fde0485c175282..7a7d2e237f8e6c1c4c63b34752f3d5559a7990f6 100644
--- a/content/browser/geolocation/network_location_request.cc
+++ b/content/browser/geolocation/network_location_request.cc
@@ -13,6 +13,7 @@
#include "base/values.h"
#include "content/common/geoposition.h"
#include "content/common/net/url_fetcher_impl.h"
+#include "content/public/common/content_url_request_user_data.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/url_request/url_request_context_getter.h"
@@ -90,6 +91,9 @@ bool NetworkLocationRequest::MakeRequest(const std::string& host_name,
url_fetcher_.reset(URLFetcherImpl::Create(
url_fetcher_id_for_tests, request_url, URLFetcherImpl::GET, this));
url_fetcher_->SetRequestContext(url_context_);
+ // No user data, as the request will be cookie-less.
+ url_fetcher_->SetContentURLRequestUserData(
+ new content::ContentURLRequestUserData());
url_fetcher_->SetLoadFlags(
net::LOAD_BYPASS_CACHE | net::LOAD_DISABLE_CACHE |
net::LOAD_DO_NOT_SAVE_COOKIES | net::LOAD_DO_NOT_SEND_COOKIES |

Powered by Google App Engine
This is Rietveld 408576698