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

Unified Diff: base/win/message_window.cc

Issue 1852143002: win: Remove GetModuleFromAddress, deduplicate __ImageBase code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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/base/win/message_window.cc b/base/win/message_window.cc
index 381b1b167bbae91a2965b6941c16565c71cd33d9..26b64a533887e0e619d7b50a4d36f2de69d6303e 100644
--- a/base/win/message_window.cc
+++ b/base/win/message_window.cc
@@ -7,7 +7,7 @@
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/process/memory.h"
+#include "base/win/current_module.h"
#include "base/win/wrapped_window_proc.h"
const wchar_t kMessageWindowClassName[] = L"Chrome_MessageWindow";
@@ -36,8 +36,7 @@ static LazyInstance<MessageWindow::WindowClass> g_window_class =
LAZY_INSTANCE_INITIALIZER;
MessageWindow::WindowClass::WindowClass()
- : atom_(0),
- instance_(base::GetModuleFromAddress(&MessageWindow::WindowProc)) {
+ : atom_(0), instance_(CURRENT_MODULE()) {
WNDCLASSEX window_class;
window_class.cbSize = sizeof(window_class);
window_class.style = 0;

Powered by Google App Engine
This is Rietveld 408576698