Chromium Code Reviews
DescriptionFix MaximizeModeController startup race
MaximizeModeController receives signals from PowerManagerClient regarding state
changes of the lid and tablet switch. These are sent from powerd.
However it is possible for these state changes to occur before Chrome is
running. Leading to MaximizeModeController never being told of their state.
This change utilizes the new ability to poll the initial state.
TEST=MaximizeModeControllerTest.InitializedWhileTabletModeSwitchOn
BUG=36452425
Review-Url: https://codereview.chromium.org/2770723002
Cr-Commit-Position: refs/heads/master@{#459155}
Committed: https://chromium.googlesource.com/chromium/src/+/0e190474ec6f3ddd09c3781fe5d57da50900df90
Patch Set 1 #Patch Set 2 : remove something used for logging in debug #Patch Set 3 : add lifetime management for the call back #Patch Set 4 : Verified on Device #
Messages
Total messages: 19 (13 generated)
|
|||||||||||||||||||||||||||||||||||||