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

Unified Diff: content/browser/geolocation/arbitrator_dependency_factory.cc

Issue 6597044: Revert 76228 - Move core pieces of geolocation from chrome to content.This is... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/geolocation/arbitrator_dependency_factory.cc
===================================================================
--- content/browser/geolocation/arbitrator_dependency_factory.cc (revision 76230)
+++ content/browser/geolocation/arbitrator_dependency_factory.cc (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/geolocation/arbitrator_dependency_factory.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "content/browser/geolocation/access_token_store.h"
-#include "content/browser/geolocation/location_provider.h"
-
-// GeolocationArbitratorDependencyFactory
-GeolocationArbitratorDependencyFactory::
-~GeolocationArbitratorDependencyFactory() {
-}
-
-// DefaultGeolocationArbitratorDependencyFactory
-URLRequestContextGetter*
-DefaultGeolocationArbitratorDependencyFactory::GetContextGetter() {
- return Profile::GetDefaultRequestContext();
-}
-
-DefaultGeolocationArbitratorDependencyFactory::GetTimeNow
-DefaultGeolocationArbitratorDependencyFactory::GetTimeFunction() {
- return base::Time::Now;
-}
-
-AccessTokenStore*
-DefaultGeolocationArbitratorDependencyFactory::NewAccessTokenStore() {
- return NewChromePrefsAccessTokenStore();
-}
-
-LocationProviderBase*
-DefaultGeolocationArbitratorDependencyFactory::NewNetworkLocationProvider(
- AccessTokenStore* access_token_store,
- URLRequestContextGetter* context,
- const GURL& url,
- const string16& access_token) {
- return ::NewNetworkLocationProvider(access_token_store, context,
- url, access_token);
-}
-
-LocationProviderBase*
-DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() {
- return ::NewSystemLocationProvider();
-}
-

Powered by Google App Engine
This is Rietveld 408576698