Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3114)

Unified Diff: chrome/browser/local_discovery/privet_device_lister_impl.cc

Issue 23548028: Added logging to local discovery code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/local_discovery/privet_device_lister_impl.cc
diff --git a/chrome/browser/local_discovery/privet_device_lister_impl.cc b/chrome/browser/local_discovery/privet_device_lister_impl.cc
index cf153a41bfba1151785936979cb4ed5df93f9cce..421f92ffd7896a2623ad5302c9827273f76f291d 100644
--- a/chrome/browser/local_discovery/privet_device_lister_impl.cc
+++ b/chrome/browser/local_discovery/privet_device_lister_impl.cc
@@ -41,6 +41,7 @@ void PrivetDeviceListerImpl::Start() {
}
void PrivetDeviceListerImpl::DiscoverNewDevices(bool force_update) {
+ VLOG(1) << "DiscoverNewDevices in privet layer";
service_watcher_->DiscoverNewServices(force_update);
}
@@ -56,6 +57,7 @@ void PrivetDeviceListerImpl::OnServiceUpdated(
}
if (update != ServiceWatcher::UPDATE_REMOVED) {
+ VLOG(1) << "Service added or updated in privet layer: " << service_name;
Vitaly Buka (NO REVIEWS) 2013/09/10 04:47:41 Log will have file name and line so no need "prive
Noam Samuel 2013/09/10 23:23:34 Done.
bool added = (update == ServiceWatcher::UPDATE_ADDED);
std::pair<ServiceResolverMap::iterator, bool> insert_result =
resolvers_.insert(make_pair(service_name,
@@ -74,6 +76,7 @@ void PrivetDeviceListerImpl::OnServiceUpdated(
insert_result.first->second->StartResolving();
}
} else {
+ VLOG(1) << "Service removed in privet layer: " << service_name;
Vitaly Buka (NO REVIEWS) 2013/09/10 04:47:41 same
Noam Samuel 2013/09/10 23:23:34 Done.
delegate_->DeviceRemoved(service_name);
}
}
@@ -93,6 +96,9 @@ void PrivetDeviceListerImpl::OnResolveComplete(
FillDeviceDescription(service_description, &device_description);
std::string service_name = service_description.service_name;
+
+ VLOG(1) << "Finished resolving service " << service_name
+ << " in privet layer";
Vitaly Buka (NO REVIEWS) 2013/09/10 04:47:41 same
Noam Samuel 2013/09/10 23:23:34 Done.
resolvers_.erase(service_name);
delegate_->DeviceChanged(added, service_name, device_description);
}

Powered by Google App Engine
This is Rietveld 408576698