| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/location_provider_android.h" | 5 #include "content/browser/geolocation/location_provider_android.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
| 7 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 8 #include "content/browser/geolocation/location_api_adapter_android.h" | 9 #include "content/browser/geolocation/location_api_adapter_android.h" |
| 9 #include "content/public/common/geoposition.h" | 10 #include "content/public/common/geoposition.h" |
| 10 | 11 |
| 11 namespace content { | 12 namespace content { |
| 12 | 13 |
| 13 // LocationProviderAndroid | 14 // LocationProviderAndroid |
| 14 LocationProviderAndroid::LocationProviderAndroid() { | 15 LocationProviderAndroid::LocationProviderAndroid() { |
| 15 } | 16 } |
| 16 | 17 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 } | 38 } |
| 38 | 39 |
| 39 void LocationProviderAndroid::RequestRefresh() { | 40 void LocationProviderAndroid::RequestRefresh() { |
| 40 // Nothing to do here, android framework will call us back on new position. | 41 // Nothing to do here, android framework will call us back on new position. |
| 41 } | 42 } |
| 42 | 43 |
| 43 void LocationProviderAndroid::OnPermissionGranted() { | 44 void LocationProviderAndroid::OnPermissionGranted() { |
| 44 // Nothing to do here. | 45 // Nothing to do here. |
| 45 } | 46 } |
| 46 | 47 |
| 47 LocationProvider* NewSystemLocationProvider() { | 48 // static |
| 48 return new LocationProviderAndroid; | 49 std::unique_ptr<LocationProvider> NewSystemLocationProvider() { |
| 50 return base::WrapUnique(new LocationProviderAndroid); |
| 49 } | 51 } |
| 50 | 52 |
| 51 } // namespace content | 53 } // namespace content |
| OLD | NEW |