Extract the low-level code working directly with Tab, Webcontents and related entities out of CustomTabActivity into a dedicated class; make it unit-testable and write some tests.
This is a part of CustomTabActivity refactoring plan described in
https://docs.google.com/document/d/1E9u-9eSFjLwVnUUIekhurmKk-8vsSDxek7cZiFd6ToY
Comment 1 by pshmakov@google.com
, Dec 19