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

Side by Side Diff: ppapi/native_client/tools/browser_tester/browsertester/browserlauncher.py

Issue 12213117: nacl_integration: disable DNS prefetching and sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 7 years, 10 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 | no next file » | 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/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os.path 6 import os.path
7 import re 7 import re
8 import shutil 8 import shutil
9 import sys 9 import sys
10 import tempfile 10 import tempfile
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 def NetLogName(self): 264 def NetLogName(self):
265 return os.path.join(self.profile, 'netlog.json') 265 return os.path.join(self.profile, 'netlog.json')
266 266
267 def MakeCmd(self, url, port): 267 def MakeCmd(self, url, port):
268 cmd = [self.binary, 268 cmd = [self.binary,
269 # Note that we do not use "--enable-logging" here because 269 # Note that we do not use "--enable-logging" here because
270 # it actually turns off logging to the Buildbot logs on 270 # it actually turns off logging to the Buildbot logs on
271 # Windows (see http://crbug.com/169941). 271 # Windows (see http://crbug.com/169941).
272 '--disable-web-resources', 272 '--disable-web-resources',
273 '--disable-preconnect', 273 '--disable-preconnect',
274 # This is speculative, sync should not occur with a clean profile.
275 '--disable-sync',
276 # This prevents Chrome from making "hidden" network requests at
277 # startup. These requests could be a source of non-determinism,
278 # and they also add noise to the netlogs.
279 '--dns-prefetch-disable',
274 '--no-first-run', 280 '--no-first-run',
275 '--no-default-browser-check', 281 '--no-default-browser-check',
276 '--log-level=1', 282 '--log-level=1',
277 '--safebrowsing-disable-auto-update', 283 '--safebrowsing-disable-auto-update',
278 # Suppress metrics reporting. This prevents misconfigured bots, 284 # Suppress metrics reporting. This prevents misconfigured bots,
279 # people testing at their desktop, etc from poisoning the UMA data. 285 # people testing at their desktop, etc from poisoning the UMA data.
280 '--metrics-recording-only', 286 '--metrics-recording-only',
281 # Chrome explicitly blacklists some ports as "unsafe" because 287 # Chrome explicitly blacklists some ports as "unsafe" because
282 # certain protocols use them. Chrome gives an error like this: 288 # certain protocols use them. Chrome gives an error like this:
283 # Error 312 (net::ERR_UNSAFE_PORT): Unknown error 289 # Error 312 (net::ERR_UNSAFE_PORT): Unknown error
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 '--trace-children=yes', 333 '--trace-children=yes',
328 '--nacl-file=%s' % (self.options.files[0],), 334 '--nacl-file=%s' % (self.options.files[0],),
329 '--ignore=../tools/valgrind/tsan/ignores.txt', 335 '--ignore=../tools/valgrind/tsan/ignores.txt',
330 '--suppressions=../tools/valgrind/tsan/suppressions.txt', 336 '--suppressions=../tools/valgrind/tsan/suppressions.txt',
331 '--log-file=%s/log.%%p' % (self.tool_log_dir,)] + cmd 337 '--log-file=%s/log.%%p' % (self.tool_log_dir,)] + cmd
332 elif self.options.tool != None: 338 elif self.options.tool != None:
333 raise LaunchFailure('Invalid tool name "%s"' % (self.options.tool,)) 339 raise LaunchFailure('Invalid tool name "%s"' % (self.options.tool,))
334 cmd.extend(self.options.browser_flags) 340 cmd.extend(self.options.browser_flags)
335 cmd.append(url) 341 cmd.append(url)
336 return cmd 342 return cmd
OLDNEW
« 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