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

Unified Diff: chrome/browser/policy/device_management_service.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: chrome/browser/policy/device_management_service.cc
diff --git a/chrome/browser/policy/device_management_service.cc b/chrome/browser/policy/device_management_service.cc
index cfb4b56b622036dbe3be37a9552a9b0366ef102a..cc1321b66bcce994d0ec8c999a3be291bb6b8d75 100644
--- a/chrome/browser/policy/device_management_service.cc
+++ b/chrome/browser/policy/device_management_service.cc
@@ -17,6 +17,7 @@
#include "chrome/common/chrome_version_info.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_client.h"
+#include "content/public/common/content_url_request_user_data.h"
#include "content/public/common/url_fetcher.h"
#include "googleurl/src/gurl.h"
#include "net/base/cookie_monster.h"
@@ -514,6 +515,9 @@ void DeviceManagementService::StartJob(DeviceManagementRequestJobImpl* job,
net::LOAD_DISABLE_CACHE |
(bypass_proxy ? net::LOAD_BYPASS_PROXY : 0));
fetcher->SetRequestContext(request_context_getter_.get());
+ // No user data, as the request will be cookie-less.
+ fetcher->SetContentURLRequestUserData(
+ new content::ContentURLRequestUserData());
job->ConfigureRequest(fetcher);
pending_jobs_[fetcher] = job;
fetcher->Start();

Powered by Google App Engine
This is Rietveld 408576698