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

Unified Diff: build/android/pylib/device_settings.py

Issue 348673003: Add option to provision_devices script to disable location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comment. Created 6 years, 6 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 | « build/android/provision_devices.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/device_settings.py
diff --git a/build/android/pylib/device_settings.py b/build/android/pylib/device_settings.py
index 2c2adcefcda0633e894128e634d7dc662d96c9c3..29cf35d1e6283576f70456c8eb9c783aabb8113f 100644
--- a/build/android/pylib/device_settings.py
+++ b/build/android/pylib/device_settings.py
@@ -47,6 +47,20 @@ def ConfigureContentSettingsDict(device, desired_settings):
logging.info('\t%s: %s', key, value)
+ENABLE_LOCATION_SETTING = {
+ 'settings/secure': {
+ # Ensure Geolocation is enabled and allowed for tests.
+ 'location_providers_allowed': 'gps,network',
+ }
+}
+
+DISABLE_LOCATION_SETTING = {
+ 'settings/secure': {
+ # Ensure Geolocation is disabled.
+ 'location_providers_allowed': '',
+ }
+}
+
DETERMINISTIC_DEVICE_SETTINGS = {
'com.google.settings/partner': {
'network_location_opt_in': 0,
@@ -83,9 +97,6 @@ DETERMINISTIC_DEVICE_SETTINGS = {
# receives the injected user input events).
'anr_show_background': 0,
- # Ensure Geolocation is enabled and allowed for tests.
- 'location_providers_allowed': 'gps,network',
-
'lockscreen.disabled': 1,
'screensaver_enabled': 0,
« no previous file with comments | « build/android/provision_devices.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698