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

Issue 1740403002: Suppress spurious foreground/background notifications (Closed)

Created:
4 years, 9 months ago by Bryan McQuade
Modified:
4 years, 9 months ago
Reviewers:
Charlie Harrison
CC:
chromium-reviews, csharrison+watch_chromium.org, loading-reviews+metrics_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Suppress spurious foreground/background notifications WebContentsObserver::WasShown/WasHidden can be invoked for WebContents that are already in that state. This can cause us to track first foreground/background time incorrectly. This change suppresses shown/hidden notifications when we're already in that state, so our first fg/bg time tracking works correctly. BUG=590476 Committed: https://crrev.com/8de43b1b18151fd3428cb9812a95254e36770f84 Cr-Commit-Position: refs/heads/master@{#378212}

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M components/page_load_metrics/browser/metrics_web_contents_observer.cc View 1 3 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
Bryan McQuade
4 years, 9 months ago (2016-02-28 22:59:14 UTC) #4
Charlie Harrison
Looks good. Why bandaid this at our end and not at the WebContents layer? Does ...
4 years, 9 months ago (2016-02-29 14:33:12 UTC) #5
Bryan McQuade
On 2016/02/29 at 14:33:12, csharrison wrote: > Looks good. Why bandaid this at our end ...
4 years, 9 months ago (2016-02-29 14:36:27 UTC) #6
Charlie Harrison
On 2016/02/29 14:33:12, csharrison wrote: > Looks good. Why bandaid this at our end and ...
4 years, 9 months ago (2016-02-29 14:39:54 UTC) #7
Charlie Harrison
On 2016/02/29 14:39:54, csharrison wrote: > On 2016/02/29 14:33:12, csharrison wrote: > > Looks good. ...
4 years, 9 months ago (2016-02-29 14:42:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740403002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740403002/20001
4 years, 9 months ago (2016-02-29 14:47:41 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-02-29 15:38:10 UTC) #11
commit-bot: I haz the power
4 years, 9 months ago (2016-02-29 15:39:17 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8de43b1b18151fd3428cb9812a95254e36770f84
Cr-Commit-Position: refs/heads/master@{#378212}

Powered by Google App Engine
This is Rietveld 408576698