| Index: base/message_loop.h
|
| diff --git a/base/message_loop.h b/base/message_loop.h
|
| index 3523077a9cba2db3d121a1e77bb200598351912a..eeba6bb26f9c3d31ada0e6167b1018677777a94d 100644
|
| --- a/base/message_loop.h
|
| +++ b/base/message_loop.h
|
| @@ -548,6 +548,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
|
|
|