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

Unified Diff: build/android/screenshot.py

Issue 804963003: Put screenshot.py back to work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/screenshot.py
diff --git a/build/android/screenshot.py b/build/android/screenshot.py
index fb1aee1d985aaedef0c47c22605328ff4ca969bd..e3a2609f31764e2354dbd8c2c435da878ca1f62b 100755
--- a/build/android/screenshot.py
+++ b/build/android/screenshot.py
@@ -72,6 +72,8 @@ def main():
if not options.device and len(android_commands.GetAttachedDevices()) > 1:
parser.error('Multiple devices are attached. '
'Please specify device serial number with --device.')
+ elif not options.device and len(android_commands.GetAttachedDevices()) == 1:
jbudorick 2014/12/16 02:18:51 Couple of problems in here: - We're no longer usi
Ian Wen 2014/12/16 18:11:52 Did a small improvement by storing it locally. How
+ options.device = android_commands.GetAttachedDevices()[0]
if len(args) > 1:
parser.error('Too many positional arguments.')
« 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