Index: chrome/browser/extensions/browser_context_keyed_service_factories.cc |
diff --git a/chrome/browser/extensions/browser_context_keyed_service_factories.cc b/chrome/browser/extensions/browser_context_keyed_service_factories.cc |
index 3da0590c1f3368b23b4192e2947e22b0ebf84fd2..d050ab9127102062c29e630052256361df08c354 100644 |
--- a/chrome/browser/extensions/browser_context_keyed_service_factories.cc |
+++ b/chrome/browser/extensions/browser_context_keyed_service_factories.cc |
@@ -52,6 +52,7 @@ |
#include "chrome/browser/extensions/warning_badge_service_factory.h" |
#include "chrome/browser/speech/extension_api/tts_extension_api.h" |
#include "chrome/browser/ui/toolbar/toolbar_actions_model_factory.h" |
+#include "chrome/common/features.h" |
#include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h" |
#if defined(OS_CHROMEOS) |
@@ -64,7 +65,7 @@ |
#include "chrome/browser/extensions/api/input_ime/input_ime_api.h" |
#endif |
-#if defined(ENABLE_SERVICE_DISCOVERY) |
+#if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
#include "chrome/browser/extensions/api/gcd_private/gcd_private_api.h" |
#include "chrome/browser/extensions/api/mdns/mdns_api.h" |
#endif |
@@ -97,7 +98,7 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() { |
extensions::ExtensionWebUIOverrideRegistrar::GetFactoryInstance(); |
extensions::FeedbackPrivateAPI::GetFactoryInstance(); |
extensions::FontSettingsAPI::GetFactoryInstance(); |
-#if defined(ENABLE_SERVICE_DISCOVERY) |
+#if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
extensions::GcdPrivateAPI::GetFactoryInstance(); |
#endif |
extensions::HistoryAPI::GetFactoryInstance(); |
@@ -115,7 +116,7 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() { |
#if defined(OS_CHROMEOS) |
extensions::LogPrivateAPI::GetFactoryInstance(); |
#endif |
-#if defined(ENABLE_SERVICE_DISCOVERY) |
+#if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
extensions::MDnsAPI::GetFactoryInstance(); |
#endif |
#if defined(OS_CHROMEOS) |