Index: base/message_loop/message_pump_win.cc |
diff --git a/base/message_loop/message_pump_win.cc b/base/message_loop/message_pump_win.cc |
index 44bd463baa64df1743771dd9d538f70fcb13bd9a..d3a762ad59834d31256e15fa804c3049d96ed4c0 100644 |
--- a/base/message_loop/message_pump_win.cc |
+++ b/base/message_loop/message_pump_win.cc |
@@ -122,7 +122,6 @@ static const int kMessageFilterCode = 0x5001; |
// MessagePumpWin public: |
MessagePumpWin::MessagePumpWin() { |
- InitUser32APIs(); |
} |
void MessagePumpWin::Run(Delegate* delegate) { |
@@ -175,6 +174,7 @@ int MessagePumpWin::GetCurrentDelay() const { |
MessagePumpForUI::MessagePumpForUI() |
: atom_(0) { |
+ InitUser32APIs(); |
InitMessageWnd(); |
} |
@@ -511,7 +511,9 @@ bool MessagePumpForUI::ProcessPumpReplacementMessage() { |
// MessagePumpForGpu public: |
MessagePumpForGpu::MessagePumpForGpu() |
- : event_(CreateEvent(nullptr, FALSE, FALSE, nullptr)) {} |
+ : event_(CreateEvent(nullptr, FALSE, FALSE, nullptr)) { |
+ InitUser32APIs(); |
+} |
MessagePumpForGpu::~MessagePumpForGpu() { |
CloseHandle(event_); |