summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 20:51:51 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 20:51:51 +0000
commitaef15bdabed270718140d5ec2eee49878bd91384 (patch)
tree2a5e395791ca9d9691987018a201c5b2ff70cf12 /base
parentffeba6d07caa89ac69f1c2ef0c19aa3b1bbe4117 (diff)
downloadchromium_src-aef15bdabed270718140d5ec2eee49878bd91384.zip
chromium_src-aef15bdabed270718140d5ec2eee49878bd91384.tar.gz
chromium_src-aef15bdabed270718140d5ec2eee49878bd91384.tar.bz2
Relanding this.
The Ole unitialization was failing on one of the Vista build-bot. It is not clear when the Ole initialization is balanced when a CRichEditCtrl is created/destructed. So I now turn it off explicitly. This CL makes sure we unregister our Windows window classes when shut-down. It also balances-out an OLE initialization performed by the CRichEditCTRL. This is necessary for allowing to reload chrome.dll in a process, which is what the browser tests will do. BUG=None TEST=None Review URL: http://codereview.chromium.org/101004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/message_pump_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/message_pump_win.cc b/base/message_pump_win.cc
index 3af1991..737676c 100644
--- a/base/message_pump_win.cc
+++ b/base/message_pump_win.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 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.
@@ -88,6 +88,7 @@ MessagePumpForUI::MessagePumpForUI() {
MessagePumpForUI::~MessagePumpForUI() {
DestroyWindow(message_hwnd_);
+ UnregisterClass(kWndClass, GetModuleHandle(NULL));
}
void MessagePumpForUI::ScheduleWork() {