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

Unified Diff: extensions/browser/mojo/service_registration.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/browser/api/display_source/BUILD.gn ('k') | extensions/features/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/mojo/service_registration.cc
diff --git a/extensions/browser/mojo/service_registration.cc b/extensions/browser/mojo/service_registration.cc
index eca91566c60dfb1b421ecbcd228079a6bbc1ac2a..89da66b74f235188d222efdad4a537512855b311 100644
--- a/extensions/browser/mojo/service_registration.cc
+++ b/extensions/browser/mojo/service_registration.cc
@@ -18,9 +18,10 @@
#include "extensions/common/constants.h"
#include "extensions/common/extension_api.h"
#include "extensions/common/switches.h"
+#include "extensions/features/features.h"
#include "services/service_manager/public/cpp/interface_registry.h"
-#if defined(ENABLE_WIFI_DISPLAY)
+#if BUILDFLAG(ENABLE_WIFI_DISPLAY)
#include "extensions/browser/api/display_source/wifi_display/wifi_display_media_service_impl.h"
#include "extensions/browser/api/display_source/wifi_display/wifi_display_session_service_impl.h"
#endif
@@ -28,7 +29,7 @@
namespace extensions {
namespace {
-#if defined(ENABLE_WIFI_DISPLAY)
+#if BUILDFLAG(ENABLE_WIFI_DISPLAY)
bool ExtensionHasPermission(const Extension* extension,
content::RenderProcessHost* render_process_host,
const std::string& permission_name) {
@@ -54,7 +55,7 @@ void RegisterServicesForFrame(content::RenderFrameHost* render_frame_host,
KeepAliveImpl::Create,
render_frame_host->GetProcess()->GetBrowserContext(), extension));
-#if defined(ENABLE_WIFI_DISPLAY)
+#if BUILDFLAG(ENABLE_WIFI_DISPLAY)
if (ExtensionHasPermission(extension, render_frame_host->GetProcess(),
"displaySource")) {
registry->AddInterface(
« no previous file with comments | « extensions/browser/api/display_source/BUILD.gn ('k') | extensions/features/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698