Index: cloud_print/service/service_state.cc |
diff --git a/cloud_print/service/service_state.cc b/cloud_print/service/service_state.cc |
index 545210dc08e367c3b6486361ac31f516d474cb27..9c87d880563bb5e664a0e123a67696e5df5e608c 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(); |