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

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

Issue 338353004: [Android] Switch KillAll, StartActivity, and BroadcastIntent to DeviceUtils. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: appeasing windows 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/pylib/android_commands.py ('k') | build/android/pylib/device/adb_wrapper.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/content_settings.py
diff --git a/build/android/pylib/content_settings.py b/build/android/pylib/content_settings.py
index 54cedfe21a302bc0491dfe07294c893adabc306a..172eedb9e87dc30faa9470ad885f54b2533de2c9 100644
--- a/build/android/pylib/content_settings.py
+++ b/build/android/pylib/content_settings.py
@@ -41,7 +41,7 @@ class ContentSettings(dict):
# Example row:
# 'Row: 0 _id=13, name=logging_id2, value=-1fccbaa546705b05'
for row in self._device.RunShellCommand(
- 'content query --uri content://%s' % self._table, root=True):
+ 'content query --uri content://%s' % self._table, as_root=True):
fields = row.split(', ')
key = None
value = None
@@ -57,7 +57,7 @@ class ContentSettings(dict):
def __getitem__(self, key):
return self._device.RunShellCommand(
'content query --uri content://%s --where "name=\'%s\'" '
- '--projection value' % (self._table, key), root=True).strip()
+ '--projection value' % (self._table, key), as_root=True).strip()
def __setitem__(self, key, value):
if key in self:
@@ -66,7 +66,7 @@ class ContentSettings(dict):
'--bind value:%s:%s --where "name=\'%s\'"' % (
self._table,
self._GetTypeBinding(value), value, key),
- root=True)
+ as_root=True)
else:
self._device.RunShellCommand(
'content insert --uri content://%s '
@@ -74,7 +74,7 @@ class ContentSettings(dict):
self._table,
self._GetTypeBinding(key), key,
self._GetTypeBinding(value), value),
- root=True)
+ as_root=True)
def __delitem__(self, key):
self._device.RunShellCommand(
@@ -82,4 +82,4 @@ class ContentSettings(dict):
'--bind name:%s:%s' % (
self._table,
self._GetTypeBinding(key), key),
- root=True)
+ as_root=True)
« no previous file with comments | « build/android/pylib/android_commands.py ('k') | build/android/pylib/device/adb_wrapper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698