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

Unified Diff: device/geolocation/mock_location_arbitrator.cc

Issue 2226143002: Gets rid of the LocationArbitrator interface, in preference for LocationProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into lai Created 4 years, 4 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/mock_location_arbitrator.h ('k') | device/geolocation/mock_location_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/mock_location_arbitrator.cc
diff --git a/device/geolocation/mock_location_arbitrator.cc b/device/geolocation/mock_location_arbitrator.cc
deleted file mode 100644
index 0ad98c1122337ec4659e583035e047ce0821580a..0000000000000000000000000000000000000000
--- a/device/geolocation/mock_location_arbitrator.cc
+++ /dev/null
@@ -1,31 +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/mock_location_arbitrator.h"
-
-#include "base/message_loop/message_loop.h"
-#include "device/geolocation/geoposition.h"
-
-namespace device {
-
-MockLocationArbitrator::MockLocationArbitrator()
- : permission_granted_(false), providers_started_(false) {}
-
-void MockLocationArbitrator::StartProviders(bool enable_high_accuracy) {
- providers_started_ = true;
-}
-
-void MockLocationArbitrator::StopProviders() {
- providers_started_ = false;
-}
-
-void MockLocationArbitrator::OnPermissionGranted() {
- permission_granted_ = true;
-}
-
-bool MockLocationArbitrator::HasPermissionBeenGranted() const {
- return permission_granted_;
-}
-
-} // namespace device
« no previous file with comments | « device/geolocation/mock_location_arbitrator.h ('k') | device/geolocation/mock_location_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698