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

Issue 303163003: ash: Fix VideoDetectorTest's WindowState usage. (Closed)

Created:
6 years, 6 months ago by Daniel Erat
Modified:
6 years, 6 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

ash: Fix VideoDetectorTest's WindowState usage. Make the VideoDetector FullscreenWindow test use GetWindowState() to access WindowState objects. Otherwise, the WindowStates don't get unregistered as WindowObservers when they're destroyed. This was responsible for the test crashes that resulted in r266681 being reverted. BUG=365364 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273783

Patch Set 1 #

Patch Set 2 : fix test instead #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M ash/wm/video_detector_unittest.cc View 1 3 chunks +10 lines, -10 lines 0 comments Download
M ash/wm/window_state.cc View 1 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
Daniel Erat
6 years, 6 months ago (2014-05-29 23:43:56 UTC) #1
oshima
The real issue is that the test is not using GetWindowState(). The window state object ...
6 years, 6 months ago (2014-05-29 23:51:16 UTC) #2
Daniel Erat
thanks for the explanation! i didn't realize that Window's d'tor already unregistered all of its ...
6 years, 6 months ago (2014-05-30 00:53:21 UTC) #3
oshima
lgtm+
6 years, 6 months ago (2014-05-30 00:56:36 UTC) #4
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 6 months ago (2014-05-30 00:56:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/303163003/10001
6 years, 6 months ago (2014-05-30 00:58:58 UTC) #6
sky
https://codereview.chromium.org/303163003/diff/10001/ash/wm/window_state.cc File ash/wm/window_state.cc (right): https://codereview.chromium.org/303163003/diff/10001/ash/wm/window_state.cc#newcode101 ash/wm/window_state.cc:101: WindowState::~WindowState() { Is it possible to make this private ...
6 years, 6 months ago (2014-05-30 02:29:13 UTC) #7
sky
I'm LGTMing, the private friend can happen separately.
6 years, 6 months ago (2014-05-30 02:29:28 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 10:16:23 UTC) #9
Message was sent while issue was closed.
Change committed as 273783

Powered by Google App Engine
This is Rietveld 408576698