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

Side by Side Diff: tools/telemetry/telemetry/core/browser_options.py

Issue 14102002: Better support for chrome for cros local builds. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nduca feedback Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/chrome/desktop_browser_backend.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 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 import optparse 4 import optparse
5 import sys 5 import sys
6 import shlex 6 import shlex
7 import logging 7 import logging
8 import copy 8 import copy
9 9
10 from telemetry.core import browser_finder 10 from telemetry.core import browser_finder
(...skipping 11 matching lines...) Expand all
22 self.chrome_root = None 22 self.chrome_root = None
23 self.android_device = None 23 self.android_device = None
24 self.cros_ssh_identity = None 24 self.cros_ssh_identity = None
25 25
26 self.dont_override_profile = False 26 self.dont_override_profile = False
27 self.profile_dir = None 27 self.profile_dir = None
28 self.extra_browser_args = [] 28 self.extra_browser_args = []
29 self.extra_wpr_args = [] 29 self.extra_wpr_args = []
30 self.show_stdout = False 30 self.show_stdout = False
31 self.extensions_to_load = [] 31 self.extensions_to_load = []
32 self.cros_desktop = False
33 32
34 self.cros_remote = None 33 self.cros_remote = None
35 self.wpr_mode = wpr_modes.WPR_OFF 34 self.wpr_mode = wpr_modes.WPR_OFF
36 self.wpr_make_javascript_deterministic = True 35 self.wpr_make_javascript_deterministic = True
37 36
38 self.browser_user_agent_type = None 37 self.browser_user_agent_type = None
39 38
40 self.trace_dir = None 39 self.trace_dir = None
41 self.verbosity = 0 40 self.verbosity = 0
42 41
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 group.add_option('--extra-browser-args', 95 group.add_option('--extra-browser-args',
97 dest='extra_browser_args_as_string', 96 dest='extra_browser_args_as_string',
98 help='Additional arguments to pass to the browser when it starts') 97 help='Additional arguments to pass to the browser when it starts')
99 group.add_option('--extra-wpr-args', 98 group.add_option('--extra-wpr-args',
100 dest='extra_wpr_args_as_string', 99 dest='extra_wpr_args_as_string',
101 help=('Additional arguments to pass to Web Page Replay. ' 100 help=('Additional arguments to pass to Web Page Replay. '
102 'See third_party/webpagereplay/replay.py for usage.')) 101 'See third_party/webpagereplay/replay.py for usage.'))
103 group.add_option('--show-stdout', 102 group.add_option('--show-stdout',
104 action='store_true', 103 action='store_true',
105 help='When possible, will display the stdout of the process') 104 help='When possible, will display the stdout of the process')
106 # --cros-desktop is linux only.
107 if sys.platform.startswith('linux'):
108 group.add_option('--cros-desktop',
109 action='store_true',
110 help='Run ChromeOS desktop')
111 parser.add_option_group(group) 105 parser.add_option_group(group)
112 106
113 # Page set options 107 # Page set options
114 group = optparse.OptionGroup(parser, 'Page set options') 108 group = optparse.OptionGroup(parser, 'Page set options')
115 group.add_option('--page-repeat', dest='page_repeat', default=1, 109 group.add_option('--page-repeat', dest='page_repeat', default=1,
116 help='Number of times to repeat each individual ' + 110 help='Number of times to repeat each individual ' +
117 'page in the pageset before proceeding.') 111 'page in the pageset before proceeding.')
118 group.add_option('--pageset-repeat', dest='pageset_repeat', default=1, 112 group.add_option('--pageset-repeat', dest='pageset_repeat', default=1,
119 help='Number of times to repeat the entire pageset ' + 113 help='Number of times to repeat the entire pageset ' +
120 'before finishing.') 114 'before finishing.')
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 elif self.profile_type != 'clean': 194 elif self.profile_type != 'clean':
201 self.profile_dir = profile_types.GetProfileDir(self.profile_type) 195 self.profile_dir = profile_types.GetProfileDir(self.profile_type)
202 delattr(self, 'profile_type') 196 delattr(self, 'profile_type')
203 return ret 197 return ret
204 parser.parse_args = ParseArgs 198 parser.parse_args = ParseArgs
205 return parser 199 return parser
206 200
207 def AppendExtraBrowserArg(self, arg): 201 def AppendExtraBrowserArg(self, arg):
208 if arg not in self.extra_browser_args: 202 if arg not in self.extra_browser_args:
209 self.extra_browser_args.append(arg) 203 self.extra_browser_args.append(arg)
OLDNEW
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/chrome/desktop_browser_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698