Add a flag in Settings for UseCounter to avoid measuring shadow pages.
Shadow page has a frame and upon service worker startup, UseCounter will count page visits. This CL adds a flag "is_shadow_page_" in Settings and sets the flag to be true in WorkerPageShadow initialization (by default the flag's value is false). In UseCounter it checks for shadow pages and drop counts for shadow pages. Note that this flag will eventually go away since browser side use counter does not have problems with workers. So once the blink side use counter is removed, this change can be undone. This change has also been verified to work locally. Bug: 694880 Change-Id: I1cbe857d776591098bbbbf256ef8aa546c399af5 Reviewed-on: https://chromium-review.googlesource.com/917028 Commit-Queue: Luna Lu <loonybear@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#536736}
Showing
Please register or sign in to comment