Index: chrome/browser/ui/tab_helpers.cc |
diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc |
index a0e8a8fffc04f6c07a43fbfabba77fe9fb5d9e7c..eb089c58ea04aa49fb0c5f55ffe555181295a4ab 100644 |
--- a/chrome/browser/ui/tab_helpers.cc |
+++ b/chrome/browser/ui/tab_helpers.cc |
@@ -86,7 +86,7 @@ |
#include "components/zoom/zoom_controller.h" |
#endif // BUILDFLAG(ANDROID_JAVA_UI) |
-#if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
+#if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) |
#include "chrome/browser/captive_portal/captive_portal_tab_helper.h" |
#endif |
@@ -239,7 +239,7 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) { |
#endif |
// --- Feature tab helpers behind flags --- |
-#if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
+#if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) |
CaptivePortalTabHelper::CreateForWebContents(web_contents); |
#endif |