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

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

Issue 7734005: Get rid of the link time dependency between content and chrome through the geolocation code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « content/browser/geolocation/access_token_store.cc ('k') | content/browser/mock_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698