| 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/arbitrator_dependency_factory.h" | 5 #include "content/browser/geolocation/arbitrator_dependency_factory.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "content/browser/geolocation/location_provider.h" | 8 #include "content/browser/geolocation/location_provider.h" |
| 9 #include "content/public/browser/access_token_store.h" | 9 #include "content/public/browser/access_token_store.h" |
| 10 #include "content/public/browser/content_browser_client.h" | 10 #include "content/public/browser/content_browser_client.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 DefaultGeolocationArbitratorDependencyFactory::NewAccessTokenStore() { | 26 DefaultGeolocationArbitratorDependencyFactory::NewAccessTokenStore() { |
| 27 return content::GetContentClient()->browser()->CreateAccessTokenStore(); | 27 return content::GetContentClient()->browser()->CreateAccessTokenStore(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 LocationProviderBase* | 30 LocationProviderBase* |
| 31 DefaultGeolocationArbitratorDependencyFactory::NewNetworkLocationProvider( | 31 DefaultGeolocationArbitratorDependencyFactory::NewNetworkLocationProvider( |
| 32 AccessTokenStore* access_token_store, | 32 AccessTokenStore* access_token_store, |
| 33 net::URLRequestContextGetter* context, | 33 net::URLRequestContextGetter* context, |
| 34 const GURL& url, | 34 const GURL& url, |
| 35 const string16& access_token) { | 35 const string16& access_token) { |
| 36 #if defined(OS_ANDROID) |
| 37 // Android uses its own SystemLocationProvider. |
| 38 return NULL; |
| 39 #else |
| 36 return ::NewNetworkLocationProvider(access_token_store, context, | 40 return ::NewNetworkLocationProvider(access_token_store, context, |
| 37 url, access_token); | 41 url, access_token); |
| 42 #endif |
| 38 } | 43 } |
| 39 | 44 |
| 40 LocationProviderBase* | 45 LocationProviderBase* |
| 41 DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() { | 46 DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() { |
| 42 return ::NewSystemLocationProvider(); | 47 return ::NewSystemLocationProvider(); |
| 43 } | 48 } |
| 44 | 49 |
| 45 DefaultGeolocationArbitratorDependencyFactory:: | 50 DefaultGeolocationArbitratorDependencyFactory:: |
| 46 ~DefaultGeolocationArbitratorDependencyFactory() { | 51 ~DefaultGeolocationArbitratorDependencyFactory() { |
| 47 } | 52 } |
| OLD | NEW |