Copy D-Bus service files to build output.

This is done so that chromite can copy these files from the build_output
to remove this step from an ebuild in ChromeOS. This also makes "Simple
Chrome" installs more closely match standard Chrome installs on
ChromeOS.

I've confirmed that dbus/org.chromium.LibCrosService.conf and
dbus/org.chromium.LivenessService.conf are created in the output
directory when performing a chrome build for a chromeos board.

BUG=701617

Review-Url: https://codereview.chromium.org/2764513002
Cr-Commit-Position: refs/heads/master@{#458083}
diff --git a/chromeos/BUILD.gn b/chromeos/BUILD.gn
index ff5ae29..85829c4 100644
--- a/chromeos/BUILD.gn
+++ b/chromeos/BUILD.gn
@@ -47,6 +47,9 @@
     "//third_party/protobuf:protobuf_lite",
     "//url",
   ]
+  data_deps = [
+    ":dbus_service_files",
+  ]
   sources = [
     "accelerometer/accelerometer_reader.cc",
     "accelerometer/accelerometer_reader.h",
@@ -461,6 +464,16 @@
   }
 }
 
+copy("dbus_service_files") {
+  sources = [
+    "dbus/services/org.chromium.LibCrosService.conf",
+    "dbus/services/org.chromium.LivenessService.conf",
+  ]
+  outputs = [
+    "$root_out_dir/dbus/{{source_file_part}}",
+  ]
+}
+
 # This must be a static library instead of a source set because some of the
 # files pull in things with dependencies that aren't linked in all cases.
 #