Chromium Code Reviews
DescriptionDo not close network controller in ProfileExtender if it was not opened there.
If we have a benchmark that requires running a profile extender (for example,
it has a BlankPageWithExtensionProfile page), the network_controller will be
closed when the profile extender calls TearDownBrowser(). And when later
this benchmark starts running stories, it will attempt to call StartReplay
method of network_controller, which will fail, because the network_controller
is already closed.
This CL fixes this behaviour by not closing network_controller inside the
profile extender if it was not opened in that profile extender.
The review https://codereview.chromium.org/1822083003/ adds is_open property
to NetworkController class. After it lands, I'll update this CL so that it
no longer requires protected member access.
BUG=597923
Committed: https://crrev.com/636566857c10b4a4039de0656e5a289f6b775a04
Cr-Commit-Position: refs/heads/master@{#383487}
Patch Set 1 #Patch Set 2 : New catapult revision #Patch Set 3 : Rebase changes #Messages
Total messages: 15 (7 generated)
|