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

Issue 10315012: Added base::win::InitializeWindowClass() wrapper to make sure that window classes are properly asso… (Closed)

Created:
8 years, 7 months ago by alexeypa (please no reviews)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, erikwright (departed), amit, dcaiafa+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, wez+watch_chromium.org, sanjeevr, penghuang+watch_chromium.org, simonmorris+watch_chromium.org, sergeyu+watch_chromium.org, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, tfarina, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, James Su
Visibility:
Public.

Description

Added base::win::InitializeWindowClass() wrapper to make sure that window classes are properly associated with the modules containing their window procedures. TEST=win,win_rel Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136116

Patch Set 1 #

Total comments: 2

Patch Set 2 : CR feedback. #

Total comments: 5

Patch Set 3 : WNDCLASSEXW -> WNDCLASSEX #

Total comments: 4

Patch Set 4 : CR feedback and rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -161 lines) Patch
M base/message_pump_win.cc View 1 2 3 chunks +9 lines, -15 lines 0 comments Download
M base/win/wrapped_window_proc.h View 1 2 3 3 chunks +18 lines, -1 line 0 comments Download
M base/win/wrapped_window_proc.cc View 1 2 3 2 chunks +32 lines, -1 line 0 comments Download
M chrome/browser/media_gallery/media_device_notifications_window_win.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/media_gallery/media_device_notifications_window_win.cc View 1 1 chunk +26 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/status_icons/status_tray_win.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/status_icons/status_tray_win.cc View 1 2 3 3 chunks +18 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 3 chunks +36 lines, -40 lines 0 comments Download
M content/browser/system_message_window_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/system_message_window_win.cc View 1 2 1 chunk +10 lines, -11 lines 0 comments Download
M content/shell/shell_win.cc View 1 2 3 chunks +10 lines, -11 lines 0 comments Download
M remoting/host/host_service_win.cc View 1 3 chunks +12 lines, -15 lines 0 comments Download
M ui/base/clipboard/clipboard_win.cc View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M ui/base/win/window_impl.cc View 1 2 4 chunks +31 lines, -23 lines 0 comments Download
M ui/views/controls/menu/native_menu_win.cc View 1 2 3 1 chunk +15 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
alexeypa (please no reviews)
Please take a look: sky: chrome/browser/ui, content/browser, ui, ui/views dcheng: ui/base/clipboard sergeyu: remoting brettw: base, ...
8 years, 7 months ago (2012-05-03 15:56:36 UTC) #1
sky
Carlos should review this.
8 years, 7 months ago (2012-05-03 18:06:02 UTC) #2
Sergey Ulanov
https://chromiumcodereview.appspot.com/10315012/diff/1/base/win/wrapped_window_proc.h File base/win/wrapped_window_proc.h (right): https://chromiumcodereview.appspot.com/10315012/diff/1/base/win/wrapped_window_proc.h#newcode42 base/win/wrapped_window_proc.h:42: WNDCLASSEX* class_out, Since this is an output parameter, shouldn't ...
8 years, 7 months ago (2012-05-03 18:07:14 UTC) #3
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/10315012/diff/1/base/win/wrapped_window_proc.h File base/win/wrapped_window_proc.h (right): https://chromiumcodereview.appspot.com/10315012/diff/1/base/win/wrapped_window_proc.h#newcode42 base/win/wrapped_window_proc.h:42: WNDCLASSEX* class_out, On 2012/05/03 18:07:14, sergeyu wrote: > Since ...
8 years, 7 months ago (2012-05-03 18:10:54 UTC) #4
alexeypa (please no reviews)
Ping?
8 years, 7 months ago (2012-05-04 18:10:50 UTC) #5
brettw
base owners lgtm but I didn't really check the code.
8 years, 7 months ago (2012-05-04 18:19:55 UTC) #6
dcheng
http://codereview.chromium.org/10315012/diff/8001/base/win/wrapped_window_proc.cc File base/win/wrapped_window_proc.cc (right): http://codereview.chromium.org/10315012/diff/8001/base/win/wrapped_window_proc.cc#newcode45 base/win/wrapped_window_proc.cc:45: class_out->cbSize = sizeof(WNDCLASSEX); Should we add a compile assert ...
8 years, 7 months ago (2012-05-04 19:40:31 UTC) #7
alexeypa (please no reviews)
FYI. http://codereview.chromium.org/10315012/diff/8001/base/win/wrapped_window_proc.cc File base/win/wrapped_window_proc.cc (right): http://codereview.chromium.org/10315012/diff/8001/base/win/wrapped_window_proc.cc#newcode45 base/win/wrapped_window_proc.cc:45: class_out->cbSize = sizeof(WNDCLASSEX); On 2012/05/04 19:40:31, dcheng wrote: ...
8 years, 7 months ago (2012-05-04 19:54:23 UTC) #8
brettw
http://codereview.chromium.org/10315012/diff/8001/base/win/wrapped_window_proc.cc File base/win/wrapped_window_proc.cc (right): http://codereview.chromium.org/10315012/diff/8001/base/win/wrapped_window_proc.cc#newcode45 base/win/wrapped_window_proc.cc:45: class_out->cbSize = sizeof(WNDCLASSEX); I agree with no assert here.
8 years, 7 months ago (2012-05-04 20:00:55 UTC) #9
dcheng
On 2012/05/04 20:00:55, brettw wrote: > http://codereview.chromium.org/10315012/diff/8001/base/win/wrapped_window_proc.cc > File base/win/wrapped_window_proc.cc (right): > > http://codereview.chromium.org/10315012/diff/8001/base/win/wrapped_window_proc.cc#newcode45 > ...
8 years, 7 months ago (2012-05-04 20:02:25 UTC) #10
alexeypa (please no reviews)
Ping. I haven't yet got LGTMs for: cpu or sky: chrome/browser/ui, content/browser, ui, ui/views sergeyu: ...
8 years, 7 months ago (2012-05-07 20:35:56 UTC) #11
sky
cpu is the one that should review.
8 years, 7 months ago (2012-05-07 21:50:00 UTC) #12
cpu_(ooo_6.6-7.5)
I wrote a comment and then lgtm this a couple of days ago. I don't ...
8 years, 7 months ago (2012-05-09 01:52:31 UTC) #13
cpu_(ooo_6.6-7.5)
Ok, I recall now. My comment was: I hope we don't register any atl class ...
8 years, 7 months ago (2012-05-09 01:56:08 UTC) #14
sky
LGTM https://chromiumcodereview.appspot.com/10315012/diff/16001/chrome/browser/ui/views/status_icons/status_tray_win.cc File chrome/browser/ui/views/status_icons/status_tray_win.cc (right): https://chromiumcodereview.appspot.com/10315012/diff/16001/chrome/browser/ui/views/status_icons/status_tray_win.cc#newcode29 chrome/browser/ui/views/status_icons/status_tray_win.cc:29: DCHECK(atom_); Make this a CHECK too. https://chromiumcodereview.appspot.com/10315012/diff/16001/ui/views/controls/menu/native_menu_win.cc File ...
8 years, 7 months ago (2012-05-09 04:09:24 UTC) #15
alexeypa (please no reviews)
FYI https://chromiumcodereview.appspot.com/10315012/diff/16001/chrome/browser/ui/views/status_icons/status_tray_win.cc File chrome/browser/ui/views/status_icons/status_tray_win.cc (right): https://chromiumcodereview.appspot.com/10315012/diff/16001/chrome/browser/ui/views/status_icons/status_tray_win.cc#newcode29 chrome/browser/ui/views/status_icons/status_tray_win.cc:29: DCHECK(atom_); On 2012/05/09 04:09:25, sky wrote: > Make ...
8 years, 7 months ago (2012-05-09 16:56:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/10315012/17017
8 years, 7 months ago (2012-05-09 16:57:10 UTC) #17
commit-bot: I haz the power
8 years, 7 months ago (2012-05-09 20:38:21 UTC) #18
Change committed as 136116

Powered by Google App Engine
This is Rietveld 408576698