Allow IO operations in destructor of net::NetworkConfigWatcherMacThread
The destructor of net::NetworkConfigWatcherMacThread ends up calling PlatformThread::Join(), an operation that needs to be done only from an IO thread. This currently causes a DCHECK to fire in base::ThreadRestrictions. The bug was discovered by running the sync integration tests on a mac trybot. The tests create Profile objects during setup, that indirectly call ~NetworkConfigWatcherMacThread() from their destructors. This patch allows IO operations in ~NetworkConfigWatcherMacThread() using a ScopedAllowIO. BUG=70190 TEST=sync_integration_tests Review URL: http://codereview.chromium.org/6353008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72030 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment