diff options
author | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 18:11:47 +0000 |
---|---|---|
committer | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 18:11:47 +0000 |
commit | f671d792836ac7781f19d3bf605db25472a7e4a4 (patch) | |
tree | 24e1cd5d9ca07b3e6a097d22ae5a4059bb33d19c /net/base/network_config_watcher_mac.cc | |
parent | bd2583b51295541dce399c3dd0d2ee5358fd928f (diff) | |
download | chromium_src-f671d792836ac7781f19d3bf605db25472a7e4a4.zip chromium_src-f671d792836ac7781f19d3bf605db25472a7e4a4.tar.gz chromium_src-f671d792836ac7781f19d3bf605db25472a7e4a4.tar.bz2 |
Fix initial online state on Mac.
Wait on a ConditionVariable before returning from IsCurrentlyOffline(),
and Signal that CV once the initial state is set.
R=eroman@chromium.org,mark@chromium.org
BUG=86538
TEST=quit chrome, unplug network cable, start chrome with onlineTest.html (attached to the bug) on the commandline
Review URL: http://codereview.chromium.org/7785021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99401 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/network_config_watcher_mac.cc')
-rw-r--r-- | net/base/network_config_watcher_mac.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/base/network_config_watcher_mac.cc b/net/base/network_config_watcher_mac.cc index ae4387c..be399f9 100644 --- a/net/base/network_config_watcher_mac.cc +++ b/net/base/network_config_watcher_mac.cc @@ -65,6 +65,8 @@ void NetworkConfigWatcherMacThread::Init() { // not perform blocking operations. base::ThreadRestrictions::SetIOAllowed(false); + delegate_->Init(); + // TODO(willchan): Look to see if there's a better signal for when it's ok to // initialize this, rather than just delaying it by a fixed time. const int kInitializationDelayMS = 1000; |