summaryrefslogtreecommitdiffstats
path: root/content/browser/geolocation
diff options
context:
space:
mode:
authortedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-11 05:21:46 +0000
committertedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-11 05:21:46 +0000
commit1ad1e6925e3ed4ae188a290c2e5eba8eecbae6cc (patch)
treebaa1dfedcdba578cfc4952b9b2d36b2ffe6655aa /content/browser/geolocation
parentb2a36148753bb53cfe9127aef044f4a424df3e1c (diff)
downloadchromium_src-1ad1e6925e3ed4ae188a290c2e5eba8eecbae6cc.zip
chromium_src-1ad1e6925e3ed4ae188a290c2e5eba8eecbae6cc.tar.gz
chromium_src-1ad1e6925e3ed4ae188a290c2e5eba8eecbae6cc.tar.bz2
Update uses of TimeDelta in geolocation code.
R=bulach@chromium.org BUG=108171 Review URL: http://codereview.chromium.org/10027012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131718 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/geolocation')
-rw-r--r--content/browser/geolocation/gps_location_provider_unittest_linux.cc6
-rw-r--r--content/browser/geolocation/win7_location_provider_win.cc4
2 files changed, 6 insertions, 4 deletions
diff --git a/content/browser/geolocation/gps_location_provider_unittest_linux.cc b/content/browser/geolocation/gps_location_provider_unittest_linux.cc
index bff72db..ea5f5bb 100644
--- a/content/browser/geolocation/gps_location_provider_unittest_linux.cc
+++ b/content/browser/geolocation/gps_location_provider_unittest_linux.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.
@@ -195,7 +195,9 @@ TEST_F(GeolocationGpsProviderLinuxTests, LibGpsReconnect) {
// This task makes gps_open() and LibGps::Start() to succeed after
// 1500ms.
MessageLoop::current()->PostDelayedTask(
- FROM_HERE, base::Bind(&EnableGpsOpenCallback), 1500);
+ FROM_HERE,
+ base::Bind(&EnableGpsOpenCallback),
+ base::TimeDelta::FromMilliseconds(1500));
MessageLoop::current()->Run();
provider_->GetPosition(&position);
EXPECT_TRUE(position.IsInitialized());
diff --git a/content/browser/geolocation/win7_location_provider_win.cc b/content/browser/geolocation/win7_location_provider_win.cc
index 3a3c6aeb..927c053 100644
--- a/content/browser/geolocation/win7_location_provider_win.cc
+++ b/content/browser/geolocation/win7_location_provider_win.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.
@@ -96,7 +96,7 @@ void Win7LocationProvider::ScheduleNextPoll(int interval) {
MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&Win7LocationProvider::DoPollTask, weak_factory_.GetWeakPtr()),
- interval);
+ base::TimeDelta::FromMilliseconds(interval));
}
LocationProviderBase* NewSystemLocationProvider() {