diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-21 17:31:56 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-21 17:31:56 +0000 |
commit | beea99244392ee9ec7e68e2d56c4409390dfb3d1 (patch) | |
tree | a47408a7aaf52f8366ab2ac57e66f75157ba86bd /cloud_print | |
parent | 131816e4a472b264f11bc910f5005c97c3fe26f2 (diff) | |
download | chromium_src-beea99244392ee9ec7e68e2d56c4409390dfb3d1.zip chromium_src-beea99244392ee9ec7e68e2d56c4409390dfb3d1.tar.gz chromium_src-beea99244392ee9ec7e68e2d56c4409390dfb3d1.tar.bz2 |
Remove old Sleep and PostDelayedTask interfaces that use int ms instead of TimeDelta.
The previous version of this patch was reverted due to crashing cros_x86 and cros_tegra2 builds. See: http://codereview.chromium.org/9703053/
BUG=108171
Review URL: https://chromiumcodereview.appspot.com/10572030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143401 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print')
-rw-r--r-- | cloud_print/service/service_state.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cloud_print/service/service_state.cc b/cloud_print/service/service_state.cc index 545210d..1eecc49 100644 --- a/cloud_print/service/service_state.cc +++ b/cloud_print/service/service_state.cc @@ -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(); |