From ecb924c963706ef0c1c7bf149f8e74736272c442 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Thu, 17 Mar 2011 00:34:09 +0000 Subject: Add an exception wrapper to the WindowProc functions so that we receive crash reports when something goes wrong. BUG=63702 TEST=base_unittests Review URL: http://codereview.chromium.org/6697004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78475 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_pump_win.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'base/message_pump_win.cc') diff --git a/base/message_pump_win.cc b/base/message_pump_win.cc index 6098a4a..778c2f5 100644 --- a/base/message_pump_win.cc +++ b/base/message_pump_win.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -7,6 +7,7 @@ #include #include "base/metrics/histogram.h" +#include "base/win/wrapped_window_proc.h" namespace base { @@ -232,7 +233,7 @@ void MessagePumpForUI::InitMessageWnd() { WNDCLASSEX wc = {0}; wc.cbSize = sizeof(wc); - wc.lpfnWndProc = WndProcThunk; + wc.lpfnWndProc = base::win::WrappedWindowProc; wc.hInstance = hinst; wc.lpszClassName = kWndClass; RegisterClassEx(&wc); -- cgit v1.1