| OLD | NEW |
| 1 #!/usr/bin/python2.4 | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
| 3 # 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 |
| 4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 5 | 4 |
| 6 """Utility to use a browser to visit multiple URLs. | 5 """Utility to use a browser to visit multiple URLs. |
| 7 | 6 |
| 8 Prerequisites: | 7 Prerequisites: |
| 9 1. The command_line package from tools/site_compare | 8 1. The command_line package from tools/site_compare |
| 10 2. Either the IE BHO or Firefox extension (or both) | 9 2. Either the IE BHO or Firefox extension (or both) |
| 11 | 10 |
| 12 Installation: | 11 Installation: |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 190 |
| 192 # If we received a timeout response, restart the browser | 191 # If we received a timeout response, restart the browser |
| 193 if response[-9:] == ",timeout\n": | 192 if response[-9:] == ",timeout\n": |
| 194 DetachFromBrowser() | 193 DetachFromBrowser() |
| 195 | 194 |
| 196 # Invoke the iteration function | 195 # Invoke the iteration function |
| 197 iteration_func(url, Iterate.proc, Iterate.wnd, response) | 196 iteration_func(url, Iterate.proc, Iterate.wnd, response) |
| 198 | 197 |
| 199 # We're done | 198 # We're done |
| 200 DetachFromBrowser() | 199 DetachFromBrowser() |
| 201 | |
| OLD | NEW |