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

Unified Diff: base/win/message_window.cc

Issue 16020005: Fixed the racy code around the message-only window in base::MessagePumpForUI on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 7 years, 6 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: base/win/message_window.cc
diff --git a/remoting/host/win/message_window.cc b/base/win/message_window.cc
similarity index 90%
rename from remoting/host/win/message_window.cc
rename to base/win/message_window.cc
index b36b3f68f04c0ef1b58644a3a43f664004ffbc76..10d20ec2dfe6afdb37a3f6afb4efa8f2c56eb846 100644
--- a/remoting/host/win/message_window.cc
+++ b/base/win/message_window.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "remoting/host/win/message_window.h"
+#include "base/win/message_window.h"
#include "base/logging.h"
#include "base/process_util.h"
@@ -10,9 +10,9 @@
#include "base/utf_string_conversions.h"
#include "base/win/wrapped_window_proc.h"
-const char kClassNameFormat[] = "Chromoting_MessageWindow_%p";
+const char kClassNameFormat[] = "Chrome_MessageWindow_%p";
-namespace remoting {
+namespace base {
namespace win {
MessageWindow::MessageWindow()
@@ -24,13 +24,6 @@ MessageWindow::MessageWindow()
&base::win::WrappedWindowProc<WindowProc>));
}
-MessageWindow::MessageWindow(const std::string& class_name, HINSTANCE instance)
- : atom_(0),
- class_name_(class_name),
- instance_(instance),
- window_(NULL) {
-}
-
MessageWindow::~MessageWindow() {
DCHECK(CalledOnValidThread());
@@ -115,4 +108,4 @@ LRESULT CALLBACK MessageWindow::WindowProc(HWND hwnd,
}
} // namespace win
-} // namespace remoting
+} // namespace base

Powered by Google App Engine
This is Rietveld 408576698