Convert USE_VIZ_DEVTOOLS to a BUILDFLAG.

Using global defines pollutes the build. The preferred method for
feature defines are to use buildflags, which are scoped to the targets
and files that require them.

Change-Id: Ib583735e21f83b5a0084e52282bfba0f06a4ec71
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1775876
Reviewed-by: Leonard Grey <[email protected]>
Reviewed-by: enne <[email protected]>
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Bo <[email protected]>
Commit-Queue: Robert Sesek <[email protected]>
Cr-Commit-Position: refs/heads/master@{#691895}
diff --git a/components/viz/host/gpu_host_impl.h b/components/viz/host/gpu_host_impl.h
index ad8fce1d..c3c80f5c 100644
--- a/components/viz/host/gpu_host_impl.h
+++ b/components/viz/host/gpu_host_impl.h
@@ -20,6 +20,7 @@
 #include "base/sequence_checker.h"
 #include "build/build_config.h"
 #include "components/discardable_memory/public/mojom/discardable_shared_memory_manager.mojom.h"
+#include "components/ui_devtools/buildflags.h"
 #include "components/viz/host/viz_host_export.h"
 #include "gpu/command_buffer/common/activity_flags.h"
 #include "gpu/config/gpu_domain_guilt.h"
@@ -152,7 +153,7 @@
   void ConnectFrameSinkManager(mojom::FrameSinkManagerRequest request,
                                mojom::FrameSinkManagerClientPtrInfo client);
 
-#if defined(USE_VIZ_DEVTOOLS)
+#if BUILDFLAG(USE_VIZ_DEVTOOLS)
   // Connects to Viz DevTools running in the Viz service.
   void ConnectVizDevTools(mojom::VizDevToolsParamsPtr params);
 #endif