Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Issue 2770723002: Fix MaximizeModeController startup race (Closed)

Created:
3 years, 9 months ago by jonross
Modified:
3 years, 9 months ago
Reviewers:
flackr, oshima
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -3 lines) Patch
M ash/common/wm/maximize_mode/maximize_mode_controller.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M ash/common/wm/maximize_mode/maximize_mode_controller.cc View 1 2 4 chunks +15 lines, -3 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
jonross
Hey Rob, could you take a look at this review? It's an update to poll ...
3 years, 9 months ago (2017-03-23 14:54:55 UTC) #10
flackr
LGTM
3 years, 9 months ago (2017-03-23 16:47:49 UTC) #11
jonross
oshima@chromium.org: Please review changes in ash/common/wm/maximize_mode/maximize_mode_controller.* This updates uses a new polling method to determine ...
3 years, 9 months ago (2017-03-23 16:51:26 UTC) #13
oshima
lgtm
3 years, 9 months ago (2017-03-23 17:43:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2770723002/60001
3 years, 9 months ago (2017-03-23 17:48:37 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 18:37:06 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0e190474ec6f3ddd09c3781fe5d5...

Powered by Google App Engine
This is Rietveld 408576698