OLD | NEW |
(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 } |
OLD | NEW |