Index: base/message_loop/message_loop.cc |
diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc |
index c01e5421bc3478605c5a0b16ef15d36a6bb9af78..f1d0d3b0f9f83d181b24e885f36498e8db2696a2 100644 |
--- a/base/message_loop/message_loop.cc |
+++ b/base/message_loop/message_loop.cc |
@@ -100,7 +100,7 @@ bool AlwaysNotifyPump(MessageLoop::Type type) { |
#if defined(OS_IOS) |
typedef MessagePumpIOSForIO MessagePumpForIO; |
-#elif defined(OS_NACL) |
+#elif defined(OS_NACL) && !defined(__native_client_nonsfi__) |
typedef MessagePumpDefault MessagePumpForIO; |
#elif defined(OS_POSIX) |
typedef MessagePumpLibevent MessagePumpForIO; |
@@ -676,7 +676,7 @@ bool MessageLoopForUI::WatchFileDescriptor( |
//------------------------------------------------------------------------------ |
// MessageLoopForIO |
-#if !defined(OS_NACL) |
+#if !defined(OS_NACL) || defined(__native_client_nonsfi__) |
void MessageLoopForIO::AddIOObserver( |
MessageLoopForIO::IOObserver* io_observer) { |
ToPumpIO(pump_.get())->AddIOObserver(io_observer); |
@@ -714,6 +714,6 @@ bool MessageLoopForIO::WatchFileDescriptor(int fd, |
} |
#endif |
-#endif // !defined(OS_NACL) |
+#endif // !defined(OS_NACL) || defined(__native_client_nonsfi__) |
} // namespace base |