Commit 6f20166a authored by Henrique Nakashima's avatar Henrique Nakashima Committed by Commit Bot

Fix bookmarks metrics call.

Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I1f2cddd7b8faade4c9913e08010ebe6be0dd12fe
Reviewed-on: https://chromium-review.googlesource.com/842709Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526767}
parent 1b761b8d
...@@ -227,7 +227,7 @@ function PDFViewer(browserApi) { ...@@ -227,7 +227,7 @@ function PDFViewer(browserApi) {
document.body.addEventListener('change-page', e => { document.body.addEventListener('change-page', e => {
this.viewport_.goToPage(e.detail.page); this.viewport_.goToPage(e.detail.page);
if (e.detail.origin == 'bookmark') if (e.detail.origin == 'bookmark')
this.metrics.onBookmarkFollowed(); this.metrics.onFollowBookmark();
else if (e.detail.origin == 'pageselector') else if (e.detail.origin == 'pageselector')
this.metrics.onPageSelectorNavigation(); this.metrics.onPageSelectorNavigation();
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment