Support for dont_override_profile.

BUG=chromium:407844
TEST=manual

Change-Id: I4bf0d7807607ff2ca2da22bcb756d69866bff01a
Reviewed-on: https://chromium-review.googlesource.com/214319
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Achuith Bhandarkar <achuith@chromium.org>
Tested-by: Achuith Bhandarkar <achuith@chromium.org>
diff --git a/client/common_lib/cros/chrome.py b/client/common_lib/cros/chrome.py
index 0a7146c..c7ef652 100644
--- a/client/common_lib/cros/chrome.py
+++ b/client/common_lib/cros/chrome.py
@@ -18,8 +18,9 @@
 
     def __init__(self, logged_in=True, extension_paths=[], autotest_ext=False,
                  is_component=True, num_tries=3, extra_browser_args=None,
-                 clear_enterprise_policy=True, auto_login=True,
-                 gaia_login=False, username=None, password=None):
+                 clear_enterprise_policy=True, dont_override_profile=False,
+                 auto_login=True, gaia_login=False,
+                 username=None, password=None):
         """
         Constructor of telemetry wrapper.
 
@@ -34,6 +35,9 @@
                                    browser. It can be a string or a list.
         @param clear_enterprise_policy: Clear enterprise policy before
                                         logging in.
+        @param dont_override_profile: Don't delete cryptohome before login.
+                                      Telemetry will output a warning with this
+                                      option.
         @param auto_login: Does not login automatically if this is False.
                            Useful if you need to examine oobe.
         @param gaia_login: Logs in to real gaia.
@@ -72,6 +76,7 @@
         b_options.disable_component_extensions_with_background_pages = False
         b_options.create_browser_with_oobe = True
         b_options.clear_enterprise_policy = clear_enterprise_policy
+        b_options.dont_override_profile = dont_override_profile
 
         b_options.auto_login = auto_login
         b_options.gaia_login = gaia_login