diff options
-rw-r--r-- | content/browser/geolocation/gps_location_provider_unittest_linux.cc | 6 | ||||
-rw-r--r-- | content/browser/geolocation/win7_location_provider_win.cc | 4 |
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() { |