summaryrefslogtreecommitdiffstats
path: root/base/message_pump_win.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 00:34:09 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 00:34:09 +0000
commitecb924c963706ef0c1c7bf149f8e74736272c442 (patch)
treeb85a0476a31c34e2089663f0e8128fcf31f55406 /base/message_pump_win.cc
parenta7bdff4fae714f46cc7e0b9f5fbc61bbf849c876 (diff)
downloadchromium_src-ecb924c963706ef0c1c7bf149f8e74736272c442.zip
chromium_src-ecb924c963706ef0c1c7bf149f8e74736272c442.tar.gz
chromium_src-ecb924c963706ef0c1c7bf149f8e74736272c442.tar.bz2
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
Diffstat (limited to 'base/message_pump_win.cc')
-rw-r--r--base/message_pump_win.cc5
1 files changed, 3 insertions, 2 deletions
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 <math.h>
#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<WndProcThunk>;
wc.hInstance = hinst;
wc.lpszClassName = kWndClass;
RegisterClassEx(&wc);