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

Issue 2743053002: arc: Fix race condition in applying modal state. (Closed)

Created:
3 years, 9 months ago by khmel
Modified:
3 years, 9 months ago
Reviewers:
reveman
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Fix race condition in applying modal state. There is race when request to set system modal received before surface window is actually created. This CL keeps system model property and apply it once window is created. TEST=Manually, simulate situation for early system modal switch. Before fix it crashed with the same stack trace as crash reports. After this I observed warning message in log and system modal state is working as expected. BUG=639511 Review-Url: https://codereview.chromium.org/2743053002 Cr-Commit-Position: refs/heads/master@{#456256} Committed: https://chromium.googlesource.com/chromium/src/+/1111902f947ac92cb21d6ed443e2c607337308c1

Patch Set 1 #

Total comments: 8

Patch Set 2 : unit_test added + refactored apply logic #

Total comments: 6

Patch Set 3 : nits #

Patch Set 4 : forgotten nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -1 line) Patch
M components/exo/shell_surface.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M components/exo/shell_surface.cc View 1 2 2 chunks +16 lines, -1 line 0 comments Download
M components/exo/shell_surface_unittest.cc View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
khmel
Hi David, PTAL Thanks!
3 years, 9 months ago (2017-03-10 17:11:22 UTC) #2
reveman
Can you add (or adjust existing) ShellSurface unit test for this? https://codereview.chromium.org/2743053002/diff/1/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): ...
3 years, 9 months ago (2017-03-10 21:38:22 UTC) #3
khmel
Thank you for comments! PTAL updated version https://codereview.chromium.org/2743053002/diff/1/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2743053002/diff/1/components/exo/shell_surface.cc#newcode500 components/exo/shell_surface.cc:500: system_modal_ = ...
3 years, 9 months ago (2017-03-10 22:11:32 UTC) #4
reveman
lgtm % nits https://codereview.chromium.org/2743053002/diff/20001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2743053002/diff/20001/components/exo/shell_surface.cc#newcode505 components/exo/shell_surface.cc:505: if (!widget_) { nit: I don't ...
3 years, 9 months ago (2017-03-11 00:45:09 UTC) #9
khmel
Thank you for prompt review! https://codereview.chromium.org/2743053002/diff/20001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2743053002/diff/20001/components/exo/shell_surface.cc#newcode505 components/exo/shell_surface.cc:505: if (!widget_) { On ...
3 years, 9 months ago (2017-03-11 01:33:32 UTC) #10
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/2743053002/60001
3 years, 9 months ago (2017-03-11 01:33:57 UTC) #13
commit-bot: I haz the power
3 years, 9 months ago (2017-03-11 02:05:57 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/1111902f947ac92cb21d6ed443e2...

Powered by Google App Engine
This is Rietveld 408576698