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

Unified Diff: chrome/browser/net/chrome_extensions_network_delegate.cc

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 years, 1 month 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/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
}
« no previous file with comments | « chrome/browser/net/chrome_extensions_network_delegate.h ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698