| Index: base/message_loop.h
|
| diff --git a/base/message_loop.h b/base/message_loop.h
|
| index 227bfe3d8a1cb3b06d55bb05f13fed12825659c1..ba9f43971928d663a2da1a94e8eea78427bc8036 100644
|
| --- a/base/message_loop.h
|
| +++ b/base/message_loop.h
|
| @@ -549,6 +549,13 @@ class BASE_EXPORT MessageLoopForUI : public MessageLoop {
|
| void DidProcessMessage(const MSG& message);
|
| #endif // defined(OS_WIN)
|
|
|
| +#if defined(OS_IOS)
|
| + // On iOS, the main message loop cannot be Run(). Instead call Attach(),
|
| + // which connects this MessageLoop to the UI thread's CFRunLoop and allows
|
| + // PostTask() to work.
|
| + void Attach();
|
| +#endif
|
| +
|
| #if defined(OS_ANDROID)
|
| // On Android, the UI message loop is handled by Java side. So Run() should
|
| // never be called. Instead use Start(), which will forward all the native UI
|
|
|