Chromium Code Reviews
DescriptionRemove TabModel -replaceWebState: method.
In order to allow refactoring Tab and WebState ownership relationship,
remove the method allowing a test to replace the WebState owned by a
Tab.
The method was only used from two tests suites to allow using a mock
CRWWebController. As the mock is only implementing part of the class
API, registering the tab helpers with the WebState fails.
Instead introduce an additional parameter to the Tab initialiser to
control whether the tab helpers are registered or not. Call this new
initialiser from the two test suites to allow them to control which
tab helpers are initialised.
BUG=687207
Review-Url: https://codereview.chromium.org/2685653002
Cr-Commit-Position: refs/heads/master@{#448995}
Committed: https://chromium.googlesource.com/chromium/src/+/2176e15afc8a82813c303e3001a02aad930246a2
Patch Set 1 #Patch Set 2 : Reformat comments. #
Total comments: 2
Patch Set 3 : Fix indentation in the initializer. #
Depends on Patchset: Messages
Total messages: 26 (16 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||