summaryrefslogtreecommitdiffstats
path: root/cloud_print/service
diff options
context:
space:
mode:
Diffstat (limited to 'cloud_print/service')
-rw-r--r--cloud_print/service/service_state.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloud_print/service/service_state.cc b/cloud_print/service/service_state.cc
index 1eecc49..a07f8f2 100644
--- a/cloud_print/service/service_state.cc
+++ b/cloud_print/service/service_state.cc
@@ -171,12 +171,11 @@ std::string ServiceState::LoginToGoogle(const std::string& service,
post_body += "&source=" + net::EscapeUrlEncodedData("CP-Service", true);
post_body += "&service=" + net::EscapeUrlEncodedData(service, true);
- net::URLRequest request(url, &fetcher_delegate);
+ net::URLRequest request(url, &fetcher_delegate, context.get());
request.AppendBytesToUpload(post_body.c_str(), post_body.size());
request.SetExtraRequestHeaderByName(
"Content-Type", "application/x-www-form-urlencoded", true);
- request.set_context(context.get());
request.set_method("POST");
request.Start();