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

Unified Diff: chrome/service/gaia/service_gaia_authenticator.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/service/gaia/service_gaia_authenticator.cc
diff --git a/chrome/service/gaia/service_gaia_authenticator.cc b/chrome/service/gaia/service_gaia_authenticator.cc
index a77f224f46c247176ba6fbf1e709a3dd66b38185..957d83fee7be0bb261ffdc68ae4140986913d596 100644
--- a/chrome/service/gaia/service_gaia_authenticator.cc
+++ b/chrome/service/gaia/service_gaia_authenticator.cc
@@ -8,6 +8,7 @@
#include "base/message_loop_proxy.h"
#include "chrome/service/net/service_url_request_context.h"
#include "chrome/service/service_process.h"
+#include "content/public/common/content_url_request_user_data.h"
#include "content/public/common/url_fetcher.h"
#include "googleurl/src/gurl.h"
@@ -68,6 +69,9 @@ void ServiceGaiaAuthenticator::DoPost(const GURL& post_url,
post_url, content::URLFetcher::POST, this);
request->SetRequestContext(
g_service_process->GetServiceURLRequestContextGetter());
+ // TODO(jochen): Do cookie audit.
+ request->SetContentURLRequestUserData(
+ new content::ContentURLRequestUserData());
request->SetUploadData("application/x-www-form-urlencoded", post_body);
request->Start();
}

Powered by Google App Engine
This is Rietveld 408576698