arc: Add extra options to disable PAI and app sync flows.

BUG=b:121271177
TEST=together with crrev.com/i/743248

Change-Id: I30ad2a8388ed5ae4768fde346dbdea266cf615d8
Reviewed-on: https://chromium-review.googlesource.com/1387172
Commit-Ready: Yury Khmel <khmel@chromium.org>
Tested-by: Yury Khmel <khmel@google.com>
Tested-by: Yury Khmel <khmel@chromium.org>
Reviewed-by: Yury Khmel <khmel@google.com>
diff --git a/client/common_lib/cros/chrome.py b/client/common_lib/cros/chrome.py
index 22cd4ce..008407b 100644
--- a/client/common_lib/cros/chrome.py
+++ b/client/common_lib/cros/chrome.py
@@ -56,6 +56,8 @@
                  username=None, password=None, gaia_id=None,
                  arc_mode=None, disable_arc_opt_in=True,
                  disable_arc_opt_in_verification=True,
+                 disable_app_sync=False,
+                 disable_play_auto_install=False,
                  init_network_controller=False, login_delay=0):
         """
         Constructor of telemetry wrapper.
@@ -93,6 +95,12 @@
              for data migration tests where user's home data is already set up
              with opted-in state before login, this option needs to be set to
              False with disable_arc_opt_in=True to make ARC container work.
+        @param disable_app_sync:
+            Adds --arc-disable-app-sync to browser args and this disables ARC
+            app sync flow. By default it is enabled.
+        @param disable_play_auto_install:
+            Adds --arc-disable-play-auto-install to browser args and this
+            disables ARC Play Auto Install flow. By default it is enabled.
         @param login_delay: Time for idle in login screen to simulate the time
                             required for password typing.
         """
@@ -116,6 +124,12 @@
             if disable_arc_opt_in and disable_arc_opt_in_verification:
                 finder_options.browser_options.AppendExtraBrowserArgs(
                         ['--disable-arc-opt-in-verification'])
+            if disable_app_sync:
+                finder_options.browser_options.AppendExtraBrowserArgs(
+                        ['--arc-disable-app-sync'])
+            if disable_play_auto_install:
+                finder_options.browser_options.AppendExtraBrowserArgs(
+                        ['--arc-disable-play-auto-install'])
             logged_in = True
 
         self._browser_type = (self.BROWSER_TYPE_LOGIN