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

Unified Diff: chrome/browser/extensions/api/mdns/dns_sd_registry.cc

Issue 463253002: Send mdns queries for devices on network change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/mdns/dns_sd_registry.cc
diff --git a/chrome/browser/extensions/api/mdns/dns_sd_registry.cc b/chrome/browser/extensions/api/mdns/dns_sd_registry.cc
index 27222b506f1e785e46257a4252f2755b5c6f676d..936b2d281a21319a9e97abb61c643df6311044ca 100644
--- a/chrome/browser/extensions/api/mdns/dns_sd_registry.cc
+++ b/chrome/browser/extensions/api/mdns/dns_sd_registry.cc
@@ -35,11 +35,11 @@ DnsSdRegistry::ServiceTypeData::~ServiceTypeData() {}
void DnsSdRegistry::ServiceTypeData::ListenerAdded() {
ref_count++;
-};
+}
bool DnsSdRegistry::ServiceTypeData::ListenerRemoved() {
return --ref_count == 0;
-};
+}
int DnsSdRegistry::ServiceTypeData::GetListenerCount() {
return ref_count;
@@ -71,7 +71,7 @@ bool DnsSdRegistry::ServiceTypeData::UpdateService(
<< ", known: " << known
<< ", updated or added: " << updated_or_added;
return updated_or_added;
-};
+}
bool DnsSdRegistry::ServiceTypeData::RemoveService(
const std::string& service_name) {
@@ -83,9 +83,11 @@ bool DnsSdRegistry::ServiceTypeData::RemoveService(
}
}
return false;
-};
+}
bool DnsSdRegistry::ServiceTypeData::ClearServices() {
+ lister_->Discover(false);
+
if (service_list_.empty())
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698