| OLD | NEW |
| 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 codecs | 4 import codecs |
| 5 import logging | 5 import logging |
| 6 import os | 6 import os |
| 7 import time | 7 import time |
| 8 import traceback | 8 import traceback |
| 9 import urlparse | 9 import urlparse |
| 10 import random | 10 import random |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 tab.browser.credentials.LoginNoLongerNeeded(tab, page.credentials) | 311 tab.browser.credentials.LoginNoLongerNeeded(tab, page.credentials) |
| 312 try: | 312 try: |
| 313 tab.EvaluateJavaScript("""window.chrome && chrome.benchmarking && | 313 tab.EvaluateJavaScript("""window.chrome && chrome.benchmarking && |
| 314 chrome.benchmarking.closeConnections()""") | 314 chrome.benchmarking.closeConnections()""") |
| 315 except Exception: | 315 except Exception: |
| 316 pass | 316 pass |
| 317 | 317 |
| 318 @staticmethod | 318 @staticmethod |
| 319 def AddCommandLineOptions(parser): | 319 def AddCommandLineOptions(parser): |
| 320 page_filter_module.PageFilter.AddCommandLineOptions(parser) | 320 page_filter_module.PageFilter.AddCommandLineOptions(parser) |
| OLD | NEW |