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

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

Issue 2759523003: Add trace event in NavigationControllerImpl::GoToIndex. (Closed)
Patch Set: sync Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index 2ffeafa8135ebb3637f3e81aa6b0cb018bf0caaf..d18122274033a800093fc224d8cc3590441ace98 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -586,20 +586,18 @@ bool NavigationControllerImpl::CanGoToOffset(int offset) const {
}
void NavigationControllerImpl::GoBack() {
- TRACE_EVENT0("browser,navigation",
- "NavigationControllerImpl::GoBack");
// Call GoToIndex rather than GoToOffset to get the NOTREACHED() check.
GoToIndex(GetIndexForOffset(-1));
}
void NavigationControllerImpl::GoForward() {
- TRACE_EVENT0("browser,navigation",
- "NavigationControllerImpl::GoForward");
// Call GoToIndex rather than GoToOffset to get the NOTREACHED() check.
GoToIndex(GetIndexForOffset(1));
}
void NavigationControllerImpl::GoToIndex(int index) {
+ TRACE_EVENT0("browser,navigation,benchmark",
+ "NavigationControllerImpl::GoToIndex");
if (index < 0 || index >= static_cast<int>(entries_.size())) {
NOTREACHED();
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698