Chromium Code Reviews
DescriptionIntroduce Platform::setCurrentPlatformForTesting
In preparation for cleaning up the initialization/shutdown logic of Blink,
I need to make Platfrom::initialize() and Platform::shutdown() are balanced
(i.e., Platfrom::initialize() and Platform::shutdown() should be called only once
respectively.)
Currently TestingPlatformSupport violates the contract (i.e., it calls Platfrom::initialize()
multiple times). This CL introduces Platform::setCurrentPlatformForTesting
and makes sure that Platfrom::initialize() is called only once.
BUG=593269
Committed: https://crrev.com/1ec0cea30571de24eb8cc243c867ed346a9205ad
Cr-Commit-Position: refs/heads/master@{#380370}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #
Total comments: 1
Patch Set 6 : #
Messages
Total messages: 17 (6 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||