Currently ARC tests request to enable ARC by passing some options to chrome.New:
cr, err := chrome.New(ctx, chrome.ARCEnabled())
We will have difficulties as we add more features to ARC --- for example, this design makes it difficult to return some objects on ARC initialization.
I propose to decouple ARC logic from Chrome. With new API, ARC tests will begin with something like this:
cr, err := chrome.New(ctx)
if err != nil { ... }
defer cr.Close()
a, err := arc.Start(ctx, cr)
if err != nil { ... }
defer a.Close()
... use a to interact with ARC ...
Comment 1 by bugdroid1@chromium.org
, Jul 20