Chromium Code Reviews
DescriptionAdd test renderer host support to ExtensionServiceTestBase.
ExtensionService tests may (even inadvertently) cause the creation of
RenderProcessHosts. For example, ExtensionService::AddExtension causes
the chrome.runtime.oninstalled event to be fired inside extensions which
requires a WebContents to be created.
ExtensionServiceTestBase should include a RenderViewHostTestEnabler so
that real render hosts are not created which may leak out into other
tests and cause difficult to diagnose use-after-free errors.
BUG=608064
Committed: https://crrev.com/123aab602d256ce1aa4337972be162164953da6e
Cr-Commit-Position: refs/heads/master@{#392163}
Patch Set 1 : #Patch Set 2 : Re-enable tests. #Patch Set 3 : Fix tests that end up creating two RenderViewHostFactories. #
Messages
Total messages: 15 (7 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||