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

Unified Diff: chrome/browser/download/download_service_impl.h

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
« no previous file with comments | « chrome/browser/download/download_service.h ('k') | chrome/browser/download/download_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/download/download_service.h ('k') | chrome/browser/download/download_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698