| OLD | NEW |
| 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/arbitrator_dependency_factory.h" | 5 #include "content/browser/geolocation/arbitrator_dependency_factory.h" |
| 6 | 6 |
| 7 #include "content/browser/content_browser_client.h" | 7 #include "content/browser/content_browser_client.h" |
| 8 #include "content/browser/geolocation/access_token_store.h" | 8 #include "content/browser/geolocation/access_token_store.h" |
| 9 #include "content/browser/geolocation/location_provider.h" | 9 #include "content/browser/geolocation/location_provider.h" |
| 10 #include "content/common/content_client.h" | 10 #include "content/common/content_client.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 GetDefaultRequestContextDeprecatedCrBug64339(); | 22 GetDefaultRequestContextDeprecatedCrBug64339(); |
| 23 } | 23 } |
| 24 | 24 |
| 25 DefaultGeolocationArbitratorDependencyFactory::GetTimeNow | 25 DefaultGeolocationArbitratorDependencyFactory::GetTimeNow |
| 26 DefaultGeolocationArbitratorDependencyFactory::GetTimeFunction() { | 26 DefaultGeolocationArbitratorDependencyFactory::GetTimeFunction() { |
| 27 return base::Time::Now; | 27 return base::Time::Now; |
| 28 } | 28 } |
| 29 | 29 |
| 30 AccessTokenStore* | 30 AccessTokenStore* |
| 31 DefaultGeolocationArbitratorDependencyFactory::NewAccessTokenStore() { | 31 DefaultGeolocationArbitratorDependencyFactory::NewAccessTokenStore() { |
| 32 return NewChromePrefsAccessTokenStore(); | 32 return content::GetContentClient()->browser()->CreateAccessTokenStore(); |
| 33 } | 33 } |
| 34 | 34 |
| 35 LocationProviderBase* | 35 LocationProviderBase* |
| 36 DefaultGeolocationArbitratorDependencyFactory::NewNetworkLocationProvider( | 36 DefaultGeolocationArbitratorDependencyFactory::NewNetworkLocationProvider( |
| 37 AccessTokenStore* access_token_store, | 37 AccessTokenStore* access_token_store, |
| 38 net::URLRequestContextGetter* context, | 38 net::URLRequestContextGetter* context, |
| 39 const GURL& url, | 39 const GURL& url, |
| 40 const string16& access_token) { | 40 const string16& access_token) { |
| 41 return ::NewNetworkLocationProvider(access_token_store, context, | 41 return ::NewNetworkLocationProvider(access_token_store, context, |
| 42 url, access_token); | 42 url, access_token); |
| 43 } | 43 } |
| 44 | 44 |
| 45 LocationProviderBase* | 45 LocationProviderBase* |
| 46 DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() { | 46 DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() { |
| 47 return ::NewSystemLocationProvider(); | 47 return ::NewSystemLocationProvider(); |
| 48 } | 48 } |
| OLD | NEW |