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

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

Issue 2407483002: Make enable_service_discovery a chrome/ feature. (Closed)
Patch Set: Created 4 years, 2 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/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 76496987eeafa09e22c261be334eaae297f99460..e578146cb945563eb754eea4e66b18a8b98685c2 100644
--- a/chrome/browser/extensions/api/mdns/dns_sd_registry.cc
+++ b/chrome/browser/extensions/api/mdns/dns_sd_registry.cc
@@ -9,6 +9,7 @@
#include "base/stl_util.h"
#include "chrome/browser/extensions/api/mdns/dns_sd_device_lister.h"
#include "chrome/browser/local_discovery/service_discovery_shared_client.h"
+#include "chrome/common/features.h"
using local_discovery::ServiceDiscoveryClient;
using local_discovery::ServiceDiscoverySharedClient;
@@ -107,7 +108,7 @@ DnsSdRegistry::ServiceTypeData::GetServiceList() {
}
DnsSdRegistry::DnsSdRegistry() {
-#if defined(ENABLE_SERVICE_DISCOVERY)
+#if BUILDFLAG(ENABLE_SERVICE_DISCOVERY)
service_discovery_client_ = ServiceDiscoverySharedClient::GetInstance();
#endif
}

Powered by Google App Engine
This is Rietveld 408576698