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

Unified Diff: content/browser/frame_host/navigator_impl.cc

Issue 1825533002: Navigation start to commit trace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing label of starting URL Created 4 years, 8 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
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 755178be9cc0210776f06636a7eb7406c4c7c672..d2c47b7af8685a3a09cd7d8b3b30a8c25c8a029f 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -316,7 +316,7 @@ bool NavigatorImpl::NavigateToEntry(
frame_tree_node->navigation_request()) {
// TODO(carlosk): extend these traces to support subframes and
// non-PlzNavigate navigations.
- // For these traces below we're using the navigation handle as the async
+ // For the trace below we're using the navigation handle as the async
// trace id, |navigation_start| as the timestamp and reporting the
// FrameTreeNode id as a parameter. For navigations where no network
// request is made (data URLs, JavaScript URLs, etc) there is no handle
@@ -326,11 +326,6 @@ bool NavigatorImpl::NavigateToEntry(
frame_tree_node->navigation_request()->navigation_handle(),
navigation_start.ToInternalValue(),
"FrameTreeNode id", frame_tree_node->frame_tree_node_id());
- TRACE_EVENT_ASYNC_BEGIN_WITH_TIMESTAMP1(
- "navigation", "Navigation timeToCommit",
- frame_tree_node->navigation_request()->navigation_handle(),
- navigation_start.ToInternalValue(),
- "FrameTreeNode id", frame_tree_node->frame_tree_node_id());
}
} else {
@@ -568,12 +563,6 @@ void NavigatorImpl::DidNavigate(
if (!params.url_is_unreachable)
render_frame_host->set_last_successful_url(params.url);
- if (did_navigate && render_frame_host->frame_tree_node()->IsMainFrame() &&
- IsBrowserSideNavigationEnabled()) {
- TRACE_EVENT_ASYNC_END0("navigation", "Navigation timeToCommit",
- render_frame_host->navigation_handle());
- }
-
// Send notification about committed provisional loads. This notification is
// different from the NAV_ENTRY_COMMITTED notification which doesn't include
// the actual URL navigated to and isn't sent for AUTO_SUBFRAME navigations.
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698