Chromium Code Reviews

Unified Diff: build/android/enable_asserts.py

Issue 221823011: [Android] Change object types from AndroidCommands to DeviceUtils in build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | build/android/gyp/util/build_device.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/enable_asserts.py
diff --git a/build/android/enable_asserts.py b/build/android/enable_asserts.py
index 5659e9e2a8824607692ef99e87f1deba666115d0..1823899aea99d5a07e7c4ddb676872617f5f07c6 100755
--- a/build/android/enable_asserts.py
+++ b/build/android/enable_asserts.py
@@ -6,7 +6,7 @@
"""Enables dalvik vm asserts in the android device."""
-from pylib import android_commands
+from pylib.device import device_utils
import optparse
import sys
@@ -21,10 +21,10 @@ def main(argv):
help='Removes the dalvik.vm.enableassertions property')
options, _ = option_parser.parse_args(argv)
- commands = android_commands.AndroidCommands()
+ device = device_utils.DeviceUtils()
if options.set_asserts != None:
- if commands.SetJavaAssertsEnabled(options.set_asserts):
- commands.Reboot(full_reboot=False)
+ if device.old_interface.SetJavaAssertsEnabled(options.set_asserts):
+ device.old_interface.Reboot(full_reboot=False)
if __name__ == '__main__':
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | build/android/gyp/util/build_device.py » ('j') | no next file with comments »

Powered by Google App Engine