Commit baf028c0 authored by noamsml@chromium.org's avatar noamsml@chromium.org

Remove LogInterfaces

In debug builds, LogInterfaces cannot run in the IO or the UI threads due to an
AssertIOAllowed() call (seems the IO thread cannot run actual IO either, see
https://code.google.com/p/chromium/codesearch#chromium/src/base/threading/thread_restrictions.h )

NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/24181004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223473 0039d316-1c4b-4281-b951-d872f2087c98
parent 7476493e
......@@ -15,21 +15,6 @@
namespace local_discovery {
namespace {
void LogInterfaces() {
net::NetworkInterfaceList list;
net::GetNetworkList(&list);
std::string log;
for (net::NetworkInterfaceList::iterator it = list.begin(); it != list.end();
++it) {
log += " " + net::IPAddressToString(it->address);
}
VLOG(1) << "Local addresses:" << log;
}
} // namespace
using content::BrowserThread;
using content::UtilityProcessHost;
......@@ -283,7 +268,6 @@ void ServiceDiscoveryHostClient::Restart() {
DCHECK(CalledOnValidThread());
VLOG(1) << "ServiceDiscoveryHostClient::Restart";
LogInterfaces();
io_runner_->PostTask(
FROM_HERE,
......@@ -323,7 +307,6 @@ void ServiceDiscoveryHostClient::SendOnIOThread(IPC::Message* msg) {
void ServiceDiscoveryHostClient::OnNetworkChanged(
net::NetworkChangeNotifier::ConnectionType type) {
VLOG(1) << "ServiceDiscoveryHostClient::OnNetworkChanged";
LogInterfaces();
callback_runner_->PostDelayedTask(
FROM_HERE,
base::Bind(&ServiceDiscoveryHostClient::Restart, this),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment