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

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

Issue 874353003: New TimeToFirstURLJob* navigation metrics now work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from latest round of CR comments Created 5 years, 11 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: content/browser/frame_host/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index 34647b93f93e788ec9e81f797a86526d1bdf3da4..7625914c3bbf27c610fd78a428b38bdd8e23423c 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -108,7 +108,12 @@ void NavigationRequest::OnRequestFailed(int net_error) {
DCHECK(state_ == STARTED);
state_ = FAILED;
// TODO(davidben): Network failures should display a network error page.
- NOTIMPLEMENTED();
+ NOTIMPLEMENTED() << " where net_error=" << net_error;
+}
+
+void NavigationRequest::NavigationRequested(base::TimeTicks timestamp) {
+ frame_tree_node_->navigator()->LogResourceRequestTime(timestamp,
+ common_params_.url);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698