Index: chrome/browser/net/chrome_extensions_network_delegate.cc |
diff --git a/chrome/browser/net/chrome_extensions_network_delegate.cc b/chrome/browser/net/chrome_extensions_network_delegate.cc |
index 37329af802e34cdb63867c33b426f053af084c6e..86161ddd9ee9c5b4466d1aa6b27ea11736962ac7 100644 |
--- a/chrome/browser/net/chrome_extensions_network_delegate.cc |
+++ b/chrome/browser/net/chrome_extensions_network_delegate.cc |
@@ -7,9 +7,10 @@ |
#include <stdint.h> |
#include "base/macros.h" |
+#include "extensions/features/features.h" |
#include "net/base/net_errors.h" |
-#if defined(ENABLE_EXTENSIONS) |
+#if BUILDFLAG(ENABLE_EXTENSIONS) |
#include "base/debug/alias.h" |
#include "base/debug/dump_without_crashing.h" |
#include "base/strings/string_util.h" |
@@ -313,12 +314,12 @@ ChromeExtensionsNetworkDelegateImpl::OnAuthRequired( |
} // namespace |
-#endif // defined(ENABLE_EXTENSIONS) |
+#endif // BUILDFLAG(ENABLE_EXTENSIONS) |
// static |
ChromeExtensionsNetworkDelegate* ChromeExtensionsNetworkDelegate::Create( |
extensions::EventRouterForwarder* event_router) { |
-#if defined(ENABLE_EXTENSIONS) |
+#if BUILDFLAG(ENABLE_EXTENSIONS) |
return new ChromeExtensionsNetworkDelegateImpl(event_router); |
#else |
return new ChromeExtensionsNetworkDelegate(); |
@@ -333,7 +334,7 @@ ChromeExtensionsNetworkDelegate::~ChromeExtensionsNetworkDelegate() {} |
void ChromeExtensionsNetworkDelegate::set_extension_info_map( |
extensions::InfoMap* extension_info_map) { |
-#if defined(ENABLE_EXTENSIONS) |
+#if BUILDFLAG(ENABLE_EXTENSIONS) |
extension_info_map_ = extension_info_map; |
#endif |
} |