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

Issue 2354583003: Destroy observers eagerly when StopTracking is called. (Closed)

Created:
4 years, 3 months ago by Bryan McQuade
Modified:
4 years, 3 months ago
Reviewers:
Charlie Harrison
CC:
chromium-reviews, csharrison+watch_chromium.org, loading-reviews+metrics_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Destroy observers eagerly when StopTracking is called. Currently, if we decide to StopTracking a navigation at commit time, some callbacks may still get invoked. In particular, browser-initiated callbacks like WasShown and WasHidden may be called; timing and other callbacks should be prevented by RenderPageTrackDecider policy in the render process. This change makes us destroy observers eagerly at the time StopTracking() gets called, which prevents us from invoking any subsequent callbacks on observers after this point. BUG=648361 Committed: https://crrev.com/16e566dd1cd74c5a5def9a1d60077f6973e9f000 Cr-Commit-Position: refs/heads/master@{#419729}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M chrome/browser/page_load_metrics/metrics_web_contents_observer.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
Bryan McQuade
PTAL
4 years, 3 months ago (2016-09-19 20:41:48 UTC) #5
Charlie Harrison
LGTM
4 years, 3 months ago (2016-09-19 20:55:32 UTC) #8
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/2354583003/1
4 years, 3 months ago (2016-09-20 12:29:03 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-20 12:33:49 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 12:35:11 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/16e566dd1cd74c5a5def9a1d60077f6973e9f000
Cr-Commit-Position: refs/heads/master@{#419729}

Powered by Google App Engine
This is Rietveld 408576698