Index: tools/telemetry/telemetry/core/tab.py |
diff --git a/tools/telemetry/telemetry/core/tab.py b/tools/telemetry/telemetry/core/tab.py |
index 70eb31ebad2a95e84514402ffc513ab0b6b45e31..b6d6371a79a83277626f27baa3b2b03928888f1c 100644 |
--- a/tools/telemetry/telemetry/core/tab.py |
+++ b/tools/telemetry/telemetry/core/tab.py |
@@ -237,16 +237,14 @@ class Tab(web_contents.WebContents): |
for timestamp, bmp in frame_generator: |
yield timestamp - start_time, bmp.Crop(*content_box) |
- def PerformActionAndWaitForNavigate( |
- self, action_function, timeout=DEFAULT_TAB_TIMEOUT): |
- """Executes action_function, and waits for the navigation to complete. |
+ def WaitForNavigate(self, timeout=DEFAULT_TAB_TIMEOUT): |
+ """Waits for the navigation to complete. |
- action_function must be a Python function that results in a navigation. |
+ The current page is expect to be in a navigation. |
This function returns when the navigation is complete or when |
the timeout has been exceeded. |
""" |
- self._inspector_backend.PerformActionAndWaitForNavigate( |
- action_function, timeout) |
+ self._inspector_backend.WaitForNavigate(timeout) |
def Navigate(self, url, script_to_evaluate_on_commit=None, |
timeout=DEFAULT_TAB_TIMEOUT): |