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

Unified Diff: extensions/renderer/api/display_source/display_source_session.cc

Issue 2510633006: Move enable_wifi_display out of root build configuration. (Closed)
Patch Set: 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 | « extensions/features/features.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api/display_source/display_source_session.cc
diff --git a/extensions/renderer/api/display_source/display_source_session.cc b/extensions/renderer/api/display_source/display_source_session.cc
index ae2b67548386f4513efebe78de42a8c542954d51..99b60bb98b51fbd5b516de077afa73acb6bce713 100644
--- a/extensions/renderer/api/display_source/display_source_session.cc
+++ b/extensions/renderer/api/display_source/display_source_session.cc
@@ -4,7 +4,9 @@
#include "extensions/renderer/api/display_source/display_source_session.h"
-#if defined(ENABLE_WIFI_DISPLAY)
+#include "extensions/features/features.h"
+
+#if BUILDFLAG(ENABLE_WIFI_DISPLAY)
#include "extensions/renderer/api/display_source/wifi_display/wifi_display_session.h"
#endif
@@ -38,7 +40,7 @@ void DisplaySourceSession::SetNotificationCallbacks(
std::unique_ptr<DisplaySourceSession>
DisplaySourceSessionFactory::CreateSession(
const DisplaySourceSessionParams& params) {
-#if defined(ENABLE_WIFI_DISPLAY)
+#if BUILDFLAG(ENABLE_WIFI_DISPLAY)
return std::unique_ptr<DisplaySourceSession>(new WiFiDisplaySession(params));
#else
return nullptr;
« no previous file with comments | « extensions/features/features.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698