Index: cloud_print/service/win/service_state.cc |
diff --git a/cloud_print/service/win/service_state.cc b/cloud_print/service/win/service_state.cc |
index 1478f2b7d23da02e10a0fc1e1be742ac578e3225..5c1453f924fee948c0d628c382f76da663c8f6bf 100644 |
--- a/cloud_print/service/win/service_state.cc |
+++ b/cloud_print/service/win/service_state.cc |
@@ -164,12 +164,12 @@ std::string ServiceState::LoginToGoogle(const std::string& service, |
ServiceStateURLRequestDelegate fetcher_delegate; |
GURL url(kClientLoginUrl); |
- std::string post_body; |
- post_body += "accountType=GOOGLE"; |
- post_body += "&Email=" + net::EscapeUrlEncodedData(email, true); |
- post_body += "&Passwd=" + net::EscapeUrlEncodedData(password, true); |
- post_body += "&source=" + net::EscapeUrlEncodedData("CP-Service", true); |
- post_body += "&service=" + net::EscapeUrlEncodedData(service, true); |
+ std::string post_body; |
+ post_body += "accountType=GOOGLE"; |
+ post_body += "&Email=" + net::EscapeUrlEncodedData(email, true); |
+ post_body += "&Passwd=" + net::EscapeUrlEncodedData(password, true); |
+ post_body += "&source=" + net::EscapeUrlEncodedData("CP-Service", true); |
+ post_body += "&service=" + net::EscapeUrlEncodedData(service, true); |
net::URLRequest request(url, &fetcher_delegate); |
@@ -180,8 +180,9 @@ std::string ServiceState::LoginToGoogle(const std::string& service, |
request.set_method("POST"); |
request.Start(); |
- MessageLoop::current()->PostDelayedTask( |
- FROM_HERE, MessageLoop::QuitClosure(), kRequestTimeoutMs); |
+ MessageLoop::current()->PostDelayedTask(FROM_HERE, |
+ MessageLoop::QuitClosure(), |
+ base::TimeDelta::FromMilliseconds(kRequestTimeoutMs)); |
MessageLoop::current()->Run(); |