forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race-conditions during NetworkChangeNotifier shutdown by
properly shutting down HistogramWatcher and NetworkChangeCalculator. Observers must be unregistered to avoid use-after-free's when an event is posted to a deleted object. Unregistering observers must take place on the same thread the observer was registered on to have any effect. NetworkChangeNotifier observers must be unregistered prior to calling ~NetworkChangeNotifier() so g_network_change_notifier is non-NULL. BUG=357320 Review URL: https://codereview.chromium.org/213053006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260737 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
pauljensen@chromium.org
committed
Apr 1, 2014
1 parent
07e705f
commit 7592b41
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters