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

Side by Side Diff: build/android/pylib/device_settings.py

Issue 1869383004: Add a content setting property to disable first-use popups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import logging 5 import logging
6 6
7 from pylib import content_settings 7 from pylib import content_settings
8 8
9 _LOCK_SCREEN_SETTINGS_PATH = '/data/system/locksettings.db' 9 _LOCK_SCREEN_SETTINGS_PATH = '/data/system/locksettings.db'
10 _ALTERNATE_LOCK_SCREEN_SETTINGS_PATH = ( 10 _ALTERNATE_LOCK_SCREEN_SETTINGS_PATH = (
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 # Ensure that we never get random dialogs like "Unfortunately the process 167 # Ensure that we never get random dialogs like "Unfortunately the process
168 # android.process.acore has stopped", which steal the focus, and make our 168 # android.process.acore has stopped", which steal the focus, and make our
169 # automation fail (because the dialog steals the focus then mistakenly 169 # automation fail (because the dialog steals the focus then mistakenly
170 # receives the injected user input events). 170 # receives the injected user input events).
171 ('anr_show_background', 0), 171 ('anr_show_background', 0),
172 172
173 ('lockscreen.disabled', 1), 173 ('lockscreen.disabled', 1),
174 174
175 ('screensaver_enabled', 0), 175 ('screensaver_enabled', 0),
176
177 ('skip_first_use_hints', 1),
176 ]), 178 ]),
177 ('settings/system', [ 179 ('settings/system', [
178 # Don't want devices to accidentally rotate the screen as that could 180 # Don't want devices to accidentally rotate the screen as that could
179 # affect performance measurements. 181 # affect performance measurements.
180 ('accelerometer_rotation', 0), 182 ('accelerometer_rotation', 0),
181 183
182 ('lockscreen.disabled', 1), 184 ('lockscreen.disabled', 1),
183 185
184 # Turn down brightness and disable auto-adjust so that devices run cooler. 186 # Turn down brightness and disable auto-adjust so that devices run cooler.
185 ('screen_brightness', 5), 187 ('screen_brightness', 5),
186 ('screen_brightness_mode', 0), 188 ('screen_brightness_mode', 0),
187 189
188 ('user_rotation', 0), 190 ('user_rotation', 0),
189 ]), 191 ]),
190 ] 192 ]
191 193
192 NETWORK_DISABLED_SETTINGS = [ 194 NETWORK_DISABLED_SETTINGS = [
193 ('settings/global', [ 195 ('settings/global', [
194 ('airplane_mode_on', 1), 196 ('airplane_mode_on', 1),
195 ('wifi_on', 0), 197 ('wifi_on', 0),
196 ]), 198 ]),
197 ] 199 ]
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698