From 1ad1e6925e3ed4ae188a290c2e5eba8eecbae6cc Mon Sep 17 00:00:00 2001 From: "tedvessenes@gmail.com" Date: Wed, 11 Apr 2012 05:21:46 +0000 Subject: 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 --- content/browser/geolocation/gps_location_provider_unittest_linux.cc | 6 ++++-- content/browser/geolocation/win7_location_provider_win.cc | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'content/browser/geolocation') 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() { -- cgit v1.1