Chromium Code Reviews| 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..4493a8ba487236678a020a4a775f9bf1fa1191f1 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", |
|
tdresser
2017/03/17 19:24:42
Add ,benchmark
We haven't been consistent about t
sunjian
2017/03/17 19:32:32
Done.
|
| + "NavigationControllerImpl::GoToIndex"); |
| if (index < 0 || index >= static_cast<int>(entries_.size())) { |
| NOTREACHED(); |
| return; |