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

Issue 9965082: Change SingletonHwnd to be based on WindowImpl. (Closed)

Created:
8 years, 8 months ago by Alexei Svitkine (slow)
Modified:
8 years, 8 months ago
Reviewers:
msw, sky
CC:
chromium-reviews
Visibility:
Public.

Description

Change SingletonHwnd to be based on WindowImpl. This removes the need for some Windows plumbing in SingletonHwnd and fixes an issue where a WndProc message would be getting sent after the Singleton destruction, which was being triggered in ui_tests. WindowImpl is robust against the above issue because it stores a pointer to itself in the window user data and clears it when it is destroyed. BUG=105550 TEST=Running ui_tests with use_canvas_skia=1 on Windows shouldn't crash. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=130448

Patch Set 1 : #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -54 lines) Patch
M ui/base/win/singleton_hwnd.h View 4 chunks +8 lines, -5 lines 0 comments Download
M ui/base/win/singleton_hwnd.cc View 1 3 chunks +11 lines, -48 lines 0 comments Download
M ui/base/win/window_impl.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Alexei Svitkine (slow)
8 years, 8 months ago (2012-04-02 21:35:29 UTC) #1
sky
LGTM
8 years, 8 months ago (2012-04-02 22:12:46 UTC) #2
msw
http://codereview.chromium.org/9965082/diff/5001/ui/base/win/singleton_hwnd.cc File ui/base/win/singleton_hwnd.cc (right): http://codereview.chromium.org/9965082/diff/5001/ui/base/win/singleton_hwnd.cc#newcode35 ui/base/win/singleton_hwnd.cc:35: result = ::DefWindowProc(window, message, wparam, lparam); Can you return ...
8 years, 8 months ago (2012-04-02 22:51:03 UTC) #3
Alexei Svitkine (slow)
On 2012/04/02 22:51:03, msw wrote: > http://codereview.chromium.org/9965082/diff/5001/ui/base/win/singleton_hwnd.cc > File ui/base/win/singleton_hwnd.cc (right): > > http://codereview.chromium.org/9965082/diff/5001/ui/base/win/singleton_hwnd.cc#newcode35 > ...
8 years, 8 months ago (2012-04-03 14:19:15 UTC) #4
msw
Ah you're right; LGTM.
8 years, 8 months ago (2012-04-03 17:48:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/9965082/1003
8 years, 8 months ago (2012-04-03 17:50:05 UTC) #6
commit-bot: I haz the power
Try job failure for 9965082-1003 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-03 18:38:58 UTC) #7
commit-bot: I haz the power
8 years, 8 months ago (2012-04-03 18:40:14 UTC) #8

Powered by Google App Engine
This is Rietveld 408576698