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

Issue 2748393003: Add trace events in NavigationControllerImpl::back/forward(...). (Closed)

Created:
3 years, 9 months ago by sunjian
Modified:
3 years, 9 months ago
Reviewers:
tdresser, nasko
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add trace events in NavigationControllerImpl::back/forward(...). Currently, there is a small set of user input events that will trigger SPA (Single Page App) navigations. We just found out that pressing back/forward buttons can also trigger SPA navigations. When that happens, there is no input handling in the browser process, which is what we use to capture as navigation start event when user-input-triggered SPA navigations happened. Therefore, we need to add trace events in NavigationControllerImpl::back/forward(...) function calls and capture them as navigation start events when SPA navigations happen. BUG=702024 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2748393003 Cr-Commit-Position: refs/heads/master@{#457624} Committed: https://chromium.googlesource.com/chromium/src/+/666f71455a4f01ee74a1dee3bab82ed62813c255

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressed comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 1 chunk +4 lines, -0 lines 2 comments Download

Messages

Total messages: 21 (10 generated)
sunjian
3 years, 9 months ago (2017-03-16 00:27:33 UTC) #5
tdresser
LGTM https://codereview.chromium.org/2748393003/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2748393003/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode589 content/browser/frame_host/navigation_controller_impl.cc:589: // Call GoToIndex rather than GoToOffset to get ...
3 years, 9 months ago (2017-03-16 12:24:38 UTC) #6
sunjian
Hey Nasko, can you take a pass at the change please? https://codereview.chromium.org/2748393003/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): ...
3 years, 9 months ago (2017-03-16 18:40:30 UTC) #8
nasko
LGTM
3 years, 9 months ago (2017-03-16 20:33:46 UTC) #9
nasko
https://codereview.chromium.org/2748393003/diff/20001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2748393003/diff/20001/content/browser/frame_host/navigation_controller_impl.cc#newcode629 content/browser/frame_host/navigation_controller_impl.cc:629: void NavigationControllerImpl::GoToOffset(int offset) { Might be useful to add ...
3 years, 9 months ago (2017-03-16 20:34:44 UTC) #10
sunjian
On 2017/03/16 20:34:44, nasko (slow) wrote: > https://codereview.chromium.org/2748393003/diff/20001/content/browser/frame_host/navigation_controller_impl.cc > File content/browser/frame_host/navigation_controller_impl.cc (right): > > https://codereview.chromium.org/2748393003/diff/20001/content/browser/frame_host/navigation_controller_impl.cc#newcode629 ...
3 years, 9 months ago (2017-03-16 21:29:59 UTC) #11
nasko
On 2017/03/16 21:29:59, sunjian wrote: > On 2017/03/16 20:34:44, nasko (slow) wrote: > > > ...
3 years, 9 months ago (2017-03-16 21:52:38 UTC) #12
sunjian
On 2017/03/16 21:52:38, nasko (slow) wrote: > On 2017/03/16 21:29:59, sunjian wrote: > > On ...
3 years, 9 months ago (2017-03-16 22:06:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2748393003/20001
3 years, 9 months ago (2017-03-16 22:06:48 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/666f71455a4f01ee74a1dee3bab82ed62813c255
3 years, 9 months ago (2017-03-17 00:30:16 UTC) #20
tdresser
3 years, 9 months ago (2017-03-17 13:31:44 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/2748393003/diff/20001/content/browser/frame_h...
File content/browser/frame_host/navigation_controller_impl.cc (right):

https://codereview.chromium.org/2748393003/diff/20001/content/browser/frame_h...
content/browser/frame_host/navigation_controller_impl.cc:629: void
NavigationControllerImpl::GoToOffset(int offset) {
On 2017/03/16 20:34:44, nasko (slow) wrote:
> Might be useful to add tracing to this one and GoToIndex, to cover other cases
> you might not have seen yet.

If we only instrumented GoToIndex, we'd have full coverage here.
I'd be in favor of switching to only tracing in GoToIndex.

Powered by Google App Engine
This is Rietveld 408576698