| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/android/mock_location_settings.h" | 5 #include "chrome/browser/android/mock_location_settings.h" |
| 6 | 6 |
| 7 bool MockLocationSettings::master_location_enabled = false; | 7 bool MockLocationSettings::master_location_enabled = false; |
| 8 bool MockLocationSettings::google_apps_location_enabled = false; | 8 bool MockLocationSettings::google_apps_location_enabled = false; |
| 9 | 9 |
| 10 MockLocationSettings::MockLocationSettings() : LocationSettings() { | 10 MockLocationSettings::MockLocationSettings() : LocationSettings() { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 bool MockLocationSettings::IsMasterLocationSettingEnabled() { | 26 bool MockLocationSettings::IsMasterLocationSettingEnabled() { |
| 27 return master_location_enabled; | 27 return master_location_enabled; |
| 28 } | 28 } |
| 29 | 29 |
| 30 bool MockLocationSettings::CanSitesRequestLocationPermission( | 30 bool MockLocationSettings::CanSitesRequestLocationPermission( |
| 31 content::WebContents* web_contents) { | 31 content::WebContents* web_contents) { |
| 32 return IsMasterLocationSettingEnabled() && | 32 return IsMasterLocationSettingEnabled() && |
| 33 IsGoogleAppsLocationSettingEnabled(); | 33 IsGoogleAppsLocationSettingEnabled(); |
| 34 } | 34 } |
| 35 |
| 36 bool MockLocationSettings::CanPromptToEnableSystemLocationSetting() { |
| 37 return false; |
| 38 } |
| 39 |
| 40 void MockLocationSettings::PromptToEnableSystemLocationSetting( |
| 41 const LocationSettingsDialogContext prompt_context, |
| 42 content::WebContents* web_contents, |
| 43 LocationSettingsDialogOutcomeCallback callback) { |
| 44 std::move(callback).Run(LocationSettingsDialogOutcome::NO_PROMPT); |
| 45 } |
| OLD | NEW |