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

Unified Diff: tools/android/loading/tracing.py

Issue 2103673003: tools/android/loading: Properly detect page loading failures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: tools/android/loading/tracing.py
diff --git a/tools/android/loading/tracing.py b/tools/android/loading/tracing.py
index 3bf5246fc7e865f0a2cfd0d036e98176756d352d..060136bf09260fa3dadac8fe093d21a61a151eb2 100644
--- a/tools/android/loading/tracing.py
+++ b/tools/android/loading/tracing.py
@@ -86,6 +86,13 @@ class TracingTrack(devtools_monitor.Track):
return [e for e in matching_events
if 'frame' in e.args and e.args['frame'] == self.GetMainFrameID()]
+ def GetMainFrameRoutingID(self):
+ """Returns the main frame routing ID."""
+ for event in self.GetMatchingEvents(
+ 'navigation', 'RenderFrameImpl::OnNavigate'):
+ return event.args['id']
+ assert False
+
def GetMainFrameID(self):
"""Returns the main frame ID."""
if not self._main_frame_id:
« tools/android/loading/loading_trace.py ('K') | « tools/android/loading/request_track.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698