VIZ devtools: Add viz_view to build target

Add viz_views to an exisiting build target.

Bug: 816802
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
Change-Id: I5d7b959487bf86d7b7fa940f8f0948f8e0480cdb
Reviewed-on: https://chromium-review.googlesource.com/1136870
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org>
Commit-Queue: Yi Xu <yiyix@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575713}
diff --git a/BUILD.gn b/BUILD.gn
index bf74977..aa5bd5a 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -189,6 +189,7 @@
       "//chrome/test:telemetry_perf_unittests",
       "//chrome/test:unit_tests",
       "//components:components_browsertests",
+      "//components/ui_devtools/viz_views",
       "//components/viz:viz_perftests",
       "//components/viz:viz_unittests",
       "//components/viz/common:viz_benchmark",
diff --git a/components/ui_devtools/viz_views/frame_sink_element.cc b/components/ui_devtools/viz_views/frame_sink_element.cc
index 24ddceb..209ff71 100644
--- a/components/ui_devtools/viz_views/frame_sink_element.cc
+++ b/components/ui_devtools/viz_views/frame_sink_element.cc
@@ -4,6 +4,7 @@
 
 #include "components/ui_devtools/viz_views/frame_sink_element.h"
 
+#include "base/strings/string_piece.h"
 #include "components/ui_devtools/Protocol.h"
 #include "components/ui_devtools/ui_element_delegate.h"
 #include "components/viz/service/frame_sinks/compositor_frame_sink_support.h"
@@ -92,7 +93,7 @@
   attributes->addItem(frame_sink_id_.ToString());
   attributes->addItem("Title");
   attributes->addItem(
-      frame_sink_manager_->GetFrameSinkDebugLabel(frame_sink_id_));
+      (frame_sink_manager_->GetFrameSinkDebugLabel(frame_sink_id_)).data());
   return attributes;
 }