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

Unified Diff: device/geolocation/location_provider_android.cc

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: Created 4 years, 5 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
« no previous file with comments | « device/geolocation/location_provider_android.h ('k') | device/geolocation/location_provider_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/location_provider_android.cc
diff --git a/device/geolocation/location_provider_android.cc b/device/geolocation/location_provider_android.cc
deleted file mode 100644
index 02faf25db04c64470aae0cef534ae30f588a66ef..0000000000000000000000000000000000000000
--- a/device/geolocation/location_provider_android.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012 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 "device/geolocation/location_provider_android.h"
-
-#include "base/memory/ptr_util.h"
-#include "base/time/time.h"
-#include "device/geolocation/geoposition.h"
-#include "device/geolocation/location_api_adapter_android.h"
-
-namespace device {
-
-// LocationProviderAndroid
-LocationProviderAndroid::LocationProviderAndroid() {
-}
-
-LocationProviderAndroid::~LocationProviderAndroid() {
- StopProvider();
-}
-
-void LocationProviderAndroid::NotifyNewGeoposition(
- const Geoposition& position) {
- last_position_ = position;
- NotifyCallback(last_position_);
-}
-
-bool LocationProviderAndroid::StartProvider(bool high_accuracy) {
- return AndroidLocationApiAdapter::GetInstance()->Start(this, high_accuracy);
-}
-
-void LocationProviderAndroid::StopProvider() {
- AndroidLocationApiAdapter::GetInstance()->Stop();
-}
-
-void LocationProviderAndroid::GetPosition(Geoposition* position) {
- *position = last_position_;
-}
-
-void LocationProviderAndroid::RequestRefresh() {
- // Nothing to do here, android framework will call us back on new position.
-}
-
-void LocationProviderAndroid::OnPermissionGranted() {
- // Nothing to do here.
-}
-
-// static
-std::unique_ptr<LocationProvider> NewSystemLocationProvider() {
- return base::WrapUnique(new LocationProviderAndroid);
-}
-
-} // namespace device
« no previous file with comments | « device/geolocation/location_provider_android.h ('k') | device/geolocation/location_provider_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698