diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 22:54:21 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 22:54:21 +0000 |
commit | f02640dd4aaf6495eb03b77702cbf813df9001f2 (patch) | |
tree | 6d203b2fcb8c9b2edd7ddfb07ef1a3fe03dbf463 /net/base/network_change_notifier.cc | |
parent | 1ce00dca724d613cabe9bc5cc2a42946c4b7db07 (diff) | |
download | chromium_src-f02640dd4aaf6495eb03b77702cbf813df9001f2.zip chromium_src-f02640dd4aaf6495eb03b77702cbf813df9001f2.tar.gz chromium_src-f02640dd4aaf6495eb03b77702cbf813df9001f2.tar.bz2 |
Allow NOTIFY_EXISTING_ONLY in ObserverListThreadSafe. Switch NCN to using it.
TEST=none
Review URL: http://codereview.chromium.org/3235013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58089 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/network_change_notifier.cc')
-rw-r--r-- | net/base/network_change_notifier.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc index a0bc6b5..d069879 100644 --- a/net/base/network_change_notifier.cc +++ b/net/base/network_change_notifier.cc @@ -53,7 +53,9 @@ void NetworkChangeNotifier::RemoveObserver(Observer* observer) { } NetworkChangeNotifier::NetworkChangeNotifier() - : observer_list_(new ObserverListThreadSafe<Observer>()) { + : observer_list_( + new ObserverListThreadSafe<Observer>( + ObserverListBase<Observer>::NOTIFY_EXISTING_ONLY)) { DCHECK(!g_network_change_notifier); g_network_change_notifier = this; } |