summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/browser_proxy.cc
diff options
context:
space:
mode:
authortedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-04 20:44:28 +0000
committertedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-04 20:44:28 +0000
commit301278f160dc56d58e202d8a3c7f67427933efdb (patch)
tree5b79b8d73ae6545cdf93372709f104b8df85a0bb /chrome/test/automation/browser_proxy.cc
parentc9a2f06d793c6a02234a7340210add236667b324 (diff)
downloadchromium_src-301278f160dc56d58e202d8a3c7f67427933efdb.zip
chromium_src-301278f160dc56d58e202d8a3c7f67427933efdb.tar.gz
chromium_src-301278f160dc56d58e202d8a3c7f67427933efdb.tar.bz2
Update Sleep() calls in chrome/test to use TimeDelta instead of ints.
R=phajdan.jr@chromium.org BUG=108171 TEST= Review URL: http://codereview.chromium.org/9066001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/browser_proxy.cc')
-rw-r--r--chrome/test/automation/browser_proxy.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/test/automation/browser_proxy.cc b/chrome/test/automation/browser_proxy.cc
index cc525ef..68cabb8 100644
--- a/chrome/test/automation/browser_proxy.cc
+++ b/chrome/test/automation/browser_proxy.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -219,7 +219,8 @@ bool BrowserProxy::WaitForTabToBecomeActive(int tab,
const TimeTicks start = TimeTicks::Now();
const TimeDelta timeout = TimeDelta::FromMilliseconds(wait_timeout);
while (TimeTicks::Now() - start < timeout) {
- base::PlatformThread::Sleep(automation::kSleepTime);
+ base::PlatformThread::Sleep(
+ base::TimeDelta::FromMilliseconds(automation::kSleepTime));
int active_tab;
if (GetActiveTabIndex(&active_tab) && active_tab == tab)
return true;