[MediaRouter] MediaRouter.Provider.WakeReason metric not recorded accurately |
||
Issue descriptionMediaRouterMojoImpl calls SetWakeReason on every call that needs to be relayed to the MR extension -- regardless of whether the extension needs to be woken up at that point (i.e., because it is already awake). To fix this, we should only call SetWakeReason if a call is going to request waking up the extension.
,
Jul 6 2017
,
Jul 10 2017
The original logic records only the first wake reason each time the extension is woken up. Subsequent wake reasons are ignored. So I believe the metric should be accurate.
,
Jul 10 2017
I believe the issue was that |current_wake_reason_| could have been updated before the extension was suspended, so it might not have been the actual wake reason.
,
Jul 10 2017
Yeah but if the extension is already awake then it shouldn't be called at all? Anyway, if there was a lurking bug, then thanks for fixing it.
,
Jul 10 2017
The previous code always called SetWakeReason before calling RunOrDefer, even if the extension is already awake. |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jul 6 2017