Index: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
index 491c8d48e597060c1111fe812ba4e03cb775caec..3f695149abee8d861cc2124feda3ce2424fa3f11 100644 |
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
@@ -62,6 +62,7 @@ |
#include "chrome/browser/ui/webui/version_ui.h" |
#include "chrome/common/chrome_features.h" |
#include "chrome/common/chrome_switches.h" |
+#include "chrome/common/features.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
#include "components/dom_distiller/core/dom_distiller_constants.h" |
@@ -176,7 +177,7 @@ |
#include "chrome/browser/ui/webui/certificate_viewer_ui.h" |
#endif |
-#if defined(ENABLE_SERVICE_DISCOVERY) |
+#if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
#include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" |
#endif |
@@ -610,7 +611,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, |
return &NewWebUI<PrintPreviewUI>; |
} |
#endif |
-#if defined(ENABLE_SERVICE_DISCOVERY) |
+#if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
if (url.host() == chrome::kChromeUIDevicesHost) { |
return &NewWebUI<LocalDiscoveryUI>; |
} |