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

Side by Side Diff: chrome/browser/android/mock_location_settings.cc

Issue 815343005: Clean up geolocation code now that it's all upstream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renamed IsSystemLocationEnabled -> IsLocationEnabled Created 5 years, 11 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/android/mock_location_settings.h"
6
7 bool MockLocationSettings::master_location_enabled = false;
8 bool MockLocationSettings::google_apps_location_enabled = false;
9
10 MockLocationSettings::MockLocationSettings() : LocationSettings() {
11 }
12
13 MockLocationSettings::~MockLocationSettings() {
14 }
15
16 void MockLocationSettings::SetLocationStatus(
17 bool master, bool google_apps) {
18 master_location_enabled = master;
19 google_apps_location_enabled = google_apps;
20 }
21
22 bool MockLocationSettings::IsGoogleAppsLocationSettingEnabled() {
23 return google_apps_location_enabled;
24 }
25
26 bool MockLocationSettings::IsMasterLocationSettingEnabled() {
27 return master_location_enabled;
28 }
29
30 bool MockLocationSettings::IsLocationEnabled() {
31 return IsMasterLocationSettingEnabled() &&
32 IsGoogleAppsLocationSettingEnabled();
33 }
OLDNEW
« no previous file with comments | « chrome/browser/android/mock_location_settings.h ('k') | chrome/browser/geolocation/geolocation_permission_context_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698