deploy_chrome: Avoid unnecessary D-Bus reboots.

When D-Bus service files in /opt/google/chrome/dbus are updated, we need
to trigger a reboot so that dbus-daemon can be set up properly with the
new configuration.

However, when a user uses the --target-dir option, the D-Bus changes
won't be applied, and there is no need to perform the reboot. In that
case, a warning message is logged so users are aware in case they
expected D-Bus changes to be applied.

BUG=chromium:724175
TEST=deploy_chrome with a new dbus file

Change-Id: I1be9824881648d2092688b906700ba319b3b713e
Reviewed-on: https://chromium-review.googlesource.com/509932
Commit-Ready: Justin TerAvest <teravest@chromium.org>
Tested-by: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed