Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: content/browser/geolocation/wifi_data_provider_common.cc

Issue 9195028: Convert use of int ms to TimeDelta in files owned by bulach. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/geolocation/network_location_provider.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/geolocation/wifi_data_provider_common.h" 5 #include "content/browser/geolocation/wifi_data_provider_common.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 is_first_scan_complete_ = true; 98 is_first_scan_complete_ = true;
99 NotifyListeners(); 99 NotifyListeners();
100 } 100 }
101 } 101 }
102 102
103 void WifiDataProviderCommon::ScheduleNextScan(int interval) { 103 void WifiDataProviderCommon::ScheduleNextScan(int interval) {
104 message_loop()->PostDelayedTask( 104 message_loop()->PostDelayedTask(
105 FROM_HERE, 105 FROM_HERE,
106 base::Bind(&WifiDataProviderCommon::DoWifiScanTask, 106 base::Bind(&WifiDataProviderCommon::DoWifiScanTask,
107 weak_factory_.GetWeakPtr()), 107 weak_factory_.GetWeakPtr()),
108 interval); 108 base::TimeDelta::FromMilliseconds(interval));
109 } 109 }
OLDNEW
« no previous file with comments | « content/browser/geolocation/network_location_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698