Parse telemetry options in autotests.
This is a follow-up to crrev.com/224639
This is done to ensure BrowserOptions.UpdateFromParseResults is called.
We don't want to actually parse the command line (which is used by autotest),
so we pass in args=[].
BUG=chromium:269131
TEST=trybot
Change-Id: Ifbe702b18e024c5727e6aa6a720bab3836fc8b5a
Reviewed-on: https://chromium-review.googlesource.com/170460
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
Tested-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Achuith Bhandarkar <achuith@chromium.org>
diff --git a/client/common_lib/cros/chrome.py b/client/common_lib/cros/chrome.py
index c8f9634..dfd7845 100644
--- a/client/common_lib/cros/chrome.py
+++ b/client/common_lib/cros/chrome.py
@@ -33,6 +33,7 @@
finder_options.extensions_to_load.append(extension)
self._extensions_to_load = finder_options.extensions_to_load
+ finder_options.CreateParser().parse_args(args=[])
browser_to_create = browser_finder.FindBrowser(finder_options)
self._browser = browser_to_create.Create()
self._browser.Start()