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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_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/renderer_host/render_widget_host_view_win.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_win.cc (revision 78053)
+++ chrome/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -13,6 +13,7 @@
#include "base/scoped_comptr_win.h"
#include "base/threading/thread.h"
#include "base/win/scoped_gdi_object.h"
+#include "base/win/wrapped_window_proc.h"
#include "chrome/browser/accessibility/browser_accessibility_manager.h"
#include "chrome/browser/accessibility/browser_accessibility_state.h"
#include "chrome/browser/accessibility/browser_accessibility_win.h"
@@ -502,7 +503,7 @@
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_DBLCLKS;
- wcex.lpfnWndProc = PluginWrapperWindowProc;
+ wcex.lpfnWndProc = base::win::WrappedWindowProc<PluginWrapperWindowProc>;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = GetModuleHandle(NULL);
@@ -1583,7 +1584,8 @@
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = 0;
- wcex.lpfnWndProc = CompositorHostWindowProc;
+ wcex.lpfnWndProc =
+ base::win::WrappedWindowProc<CompositorHostWindowProc>;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = GetModuleHandle(NULL);

Powered by Google App Engine
This is Rietveld 408576698