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

Unified Diff: chrome/browser/ui/views/status_icons/status_tray_win.cc

Issue 6697004: Add an exception wrapper to the WindowProc functions so... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/status_icons/status_tray_win.cc
===================================================================
--- chrome/browser/ui/views/status_icons/status_tray_win.cc (revision 78053)
+++ chrome/browser/ui/views/status_icons/status_tray_win.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/status_icons/status_tray_win.h"
+#include "base/win/wrapped_window_proc.h"
#include "chrome/browser/ui/views/status_icons/status_icon_win.h"
#include "chrome/common/chrome_constants.h"
#include "ui/base/win/hwnd_util.h"
@@ -16,7 +17,7 @@
HINSTANCE hinst = GetModuleHandle(NULL);
WNDCLASSEX wc = {0};
wc.cbSize = sizeof(wc);
- wc.lpfnWndProc = StatusTrayWin::WndProcStatic;
+ wc.lpfnWndProc = base::win::WrappedWindowProc<StatusTrayWin::WndProcStatic>;
wc.hInstance = hinst;
wc.lpszClassName = chrome::kStatusTrayWindowClass;
ATOM clazz = RegisterClassEx(&wc);

Powered by Google App Engine
This is Rietveld 408576698