Index: chrome/browser/download/download_service_impl.h |
diff --git a/chrome/browser/download/download_service_impl.h b/chrome/browser/download/download_service_impl.h |
index 1030df523ca8dbced71d3daa55716e2fbbd75270..8a15239b6f2ec5bde0422421fc873b8366b3a434 100644 |
--- a/chrome/browser/download/download_service_impl.h |
+++ b/chrome/browser/download/download_service_impl.h |
@@ -11,6 +11,7 @@ |
#include "base/macros.h" |
#include "chrome/browser/download/download_service.h" |
#include "components/keyed_service/core/keyed_service.h" |
+#include "extensions/features/features.h" |
class ChromeDownloadManagerDelegate; |
class DownloadHistory; |
@@ -35,7 +36,7 @@ class DownloadServiceImpl : public DownloadService { |
// DownloadService |
ChromeDownloadManagerDelegate* GetDownloadManagerDelegate() override; |
DownloadHistory* GetDownloadHistory() override; |
-#if defined(ENABLE_EXTENSIONS) |
+#if BUILDFLAG(ENABLE_EXTENSIONS) |
extensions::ExtensionDownloadsEventRouter* GetExtensionEventRouter() override; |
#endif |
bool HasCreatedDownloadManager() override; |
@@ -70,7 +71,7 @@ class DownloadServiceImpl : public DownloadService { |
// Once we have extensions on android, we probably need the EventRouter |
// in ContentViewDownloadDelegate which knows about both GET and POST |
// downloads. |
-#if defined(ENABLE_EXTENSIONS) |
+#if BUILDFLAG(ENABLE_EXTENSIONS) |
// The ExtensionDownloadsEventRouter dispatches download creation, change, and |
// erase events to extensions. Like ChromeDownloadManagerDelegate, it's a |
// chrome-level concept and its lifetime should match DownloadManager. There |