| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/geolocation/network_location_provider.h" | 5 #include "chrome/browser/geolocation/network_location_provider.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/geolocation/access_token_store.h" | 9 #include "chrome/browser/geolocation/access_token_store.h" |
| 10 | 10 |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 is_new_data_available_ = is_gateway_data_complete_ || | 310 is_new_data_available_ = is_gateway_data_complete_ || |
| 311 is_radio_data_complete_ || is_wifi_data_complete_; | 311 is_radio_data_complete_ || is_wifi_data_complete_; |
| 312 UpdatePosition(); | 312 UpdatePosition(); |
| 313 } | 313 } |
| 314 | 314 |
| 315 bool NetworkLocationProvider::IsStarted() const { | 315 bool NetworkLocationProvider::IsStarted() const { |
| 316 DCHECK_EQ(!!gateway_data_provider_, !!wifi_data_provider_); | 316 DCHECK_EQ(!!gateway_data_provider_, !!wifi_data_provider_); |
| 317 DCHECK_EQ(!!radio_data_provider_, !!wifi_data_provider_); | 317 DCHECK_EQ(!!radio_data_provider_, !!wifi_data_provider_); |
| 318 return wifi_data_provider_ != NULL; | 318 return wifi_data_provider_ != NULL; |
| 319 } | 319 } |
| OLD | NEW |