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

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: Final method name change. Created 5 years, 10 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_request.h ('k') | content/browser/frame_host/navigator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f359f51712a3772edfc21be6dbb9d3d5bae08b68 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::OnRequestStarted(base::TimeTicks timestamp) {
+ frame_tree_node_->navigator()->LogResourceRequestTime(timestamp,
+ common_params_.url);
}
} // namespace content
« no previous file with comments | « content/browser/frame_host/navigation_request.h ('k') | content/browser/frame_host/navigator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698