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 | |