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

Unified Diff: content/browser/geolocation/network_location_provider.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 side-by-side diff with in-line comments
Download patch
Index: content/browser/geolocation/network_location_provider.cc
diff --git a/content/browser/geolocation/network_location_provider.cc b/content/browser/geolocation/network_location_provider.cc
index d4c83fe35fb14fdeb69eb89c34ec0c9068841ad4..9d6c0e7e3ef23c4dc600f0a17f928935cc8730d3 100644
--- a/content/browser/geolocation/network_location_provider.cc
+++ b/content/browser/geolocation/network_location_provider.cc
@@ -14,7 +14,7 @@ using content::AccessTokenStore;
namespace {
// The maximum period of time we'll wait for a complete set of device data
// before sending the request.
-const int kDataCompleteWaitPeriod = 1000 * 2; // 2 seconds
+const int kDataCompleteWaitSeconds = 2;
} // namespace
// static
@@ -213,7 +213,7 @@ bool NetworkLocationProvider::StartProvider(bool high_accuracy) {
FROM_HERE,
base::Bind(&NetworkLocationProvider::RequestPosition,
weak_factory_.GetWeakPtr()),
- kDataCompleteWaitPeriod);
+ base::TimeDelta::FromSeconds(kDataCompleteWaitSeconds));
// Get the device data.
is_radio_data_complete_ = radio_data_provider_->GetData(&radio_data_);
is_wifi_data_complete_ = wifi_data_provider_->GetData(&wifi_data_);
« no previous file with comments | « content/browser/geolocation/gps_location_provider_linux.cc ('k') | content/browser/geolocation/wifi_data_provider_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698