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

Side by Side Diff: content/browser/geolocation/arbitrator_dependency_factory.cc

Issue 10209003: Upstream Android Geolocation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix license year (->2012) Created 8 years, 7 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 unified diff | Download patch
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/geolocation/location_api_adapter_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/geolocation/location_api_adapter_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698