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

Side by Side Diff: build/android/adb_profile_chrome.py

Issue 26212003: android: Fix importing pexpect on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | build/android/pylib/android_commands.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import gzip 7 import gzip
8 import logging 8 import logging
9 import optparse 9 import optparse
10 import os 10 import os
11 import pexpect
12 import re 11 import re
13 import sys 12 import sys
14 import time 13 import time
15 14
16 from pylib import android_commands 15 from pylib import android_commands
17 from pylib import constants 16 from pylib import constants
17 from pylib import pexpect
18 18
19 19
20 def _GetSupportedBrowsers(): 20 def _GetSupportedBrowsers():
21 # Add aliases for backwards compatibility. 21 # Add aliases for backwards compatibility.
22 supported_browsers = { 22 supported_browsers = {
23 'stable': constants.PACKAGE_INFO['chrome_stable'], 23 'stable': constants.PACKAGE_INFO['chrome_stable'],
24 'beta': constants.PACKAGE_INFO['chrome_beta'], 24 'beta': constants.PACKAGE_INFO['chrome_beta'],
25 'dev': constants.PACKAGE_INFO['chrome_dev'], 25 'dev': constants.PACKAGE_INFO['chrome_dev'],
26 'build': constants.PACKAGE_INFO['chrome'], 26 'build': constants.PACKAGE_INFO['chrome'],
27 } 27 }
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 _StopTracing(adb, package_info) 203 _StopTracing(adb, package_info)
204 elif options.download: 204 elif options.download:
205 _DownloadLatestTrace(adb, options.compress) 205 _DownloadLatestTrace(adb, options.compress)
206 elif options.time: 206 elif options.time:
207 _CaptureAndDownloadTimedTrace(adb, package_info, categories, options.time, 207 _CaptureAndDownloadTimedTrace(adb, package_info, categories, options.time,
208 options.continuous, options.compress) 208 options.continuous, options.compress)
209 209
210 210
211 if __name__ == '__main__': 211 if __name__ == '__main__':
212 sys.exit(main()) 212 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | build/android/pylib/android_commands.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698