summaryrefslogtreecommitdiffstats
path: root/chrome/browser/process_singleton_win.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-24 22:39:50 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-24 22:39:50 +0000
commitc33ff77e59a22592dfd4a060adb5057a7e3aed7d (patch)
treedaedbc7cf74fc3a781090ded64ca8987cac42933 /chrome/browser/process_singleton_win.cc
parent1731d2ee1d82c51f86078a5118948e66a857412d (diff)
downloadchromium_src-c33ff77e59a22592dfd4a060adb5057a7e3aed7d.zip
chromium_src-c33ff77e59a22592dfd4a060adb5057a7e3aed7d.tar.gz
chromium_src-c33ff77e59a22592dfd4a060adb5057a7e3aed7d.tar.bz2
Reverting 14489.
Review URL: http://codereview.chromium.org/99004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14492 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/process_singleton_win.cc')
-rw-r--r--chrome/browser/process_singleton_win.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/process_singleton_win.cc b/chrome/browser/process_singleton_win.cc
index c34a4d1..99d2d5f 100644
--- a/chrome/browser/process_singleton_win.cc
+++ b/chrome/browser/process_singleton_win.cc
@@ -45,10 +45,8 @@ ProcessSingleton::ProcessSingleton(const FilePath& user_data_dir)
}
ProcessSingleton::~ProcessSingleton() {
- if (window_) {
+ if (window_)
DestroyWindow(window_);
- UnregisterClass(chrome::kMessageWindowClass, GetModuleHandle(NULL));
- }
}
bool ProcessSingleton::NotifyOtherProcess() {
@@ -144,8 +142,7 @@ void ProcessSingleton::Create() {
wc.lpfnWndProc = ProcessSingleton::WndProcStatic;
wc.hInstance = hinst;
wc.lpszClassName = chrome::kMessageWindowClass;
- ATOM clazz = RegisterClassEx(&wc);
- DCHECK(clazz);
+ RegisterClassEx(&wc);
std::wstring user_data_dir;
PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);