Pass Chrome object to ARC specific hooks.
CQ-DEPEND=CL:*261222
BUG=b:26700652
TEST=test_that minnie <some ARC tests>
Change-Id: If8f18cad9e89f6777422ec98efe8f3dd69cfc8fe
Reviewed-on: https://chromium-review.googlesource.com/348106
Commit-Ready: Shuhei Takahashi <nya@chromium.org>
Tested-by: Shuhei Takahashi <nya@chromium.org>
Reviewed-by: Victor Hsieh <victorhsieh@chromium.org>
diff --git a/client/common_lib/cros/chrome.py b/client/common_lib/cros/chrome.py
index da65814..20c331a 100644
--- a/client/common_lib/cros/chrome.py
+++ b/client/common_lib/cros/chrome.py
@@ -146,6 +146,8 @@
except AttributeError:
pass
+ self.arc_mode = arc_mode
+
if logged_in:
try:
extensions_to_load = b_options.extensions_to_load
@@ -166,7 +168,7 @@
browser_to_create = browser_finder.FindBrowser(finder_options)
self._browser = browser_to_create.Create(finder_options)
if _is_arc_available():
- arc_util.post_processing_after_browser(arc_mode)
+ arc_util.post_processing_after_browser(self)
break
except (exceptions.LoginException) as e:
logging.error('Timed out logging in, tries=%d, error=%s',
@@ -295,6 +297,6 @@
"""Closes the browser."""
try:
if _is_arc_available():
- arc_util.pre_processing_before_close()
+ arc_util.pre_processing_before_close(self)
finally:
self._browser.Close()