| Index: chrome/test/base/in_process_browser_test.cc
|
| diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc
|
| index 75871cb4e70b7705c0bb4b02bfd7bbbfaf9fe60a..14ead0611e32c4b01f5a742e7082f299d9e5e73a 100644
|
| --- a/chrome/test/base/in_process_browser_test.cc
|
| +++ b/chrome/test/base/in_process_browser_test.cc
|
| @@ -44,6 +44,10 @@
|
| #include "base/mac/scoped_nsautorelease_pool.h"
|
| #endif
|
|
|
| +#if defined(USE_AURA)
|
| +#include "ui/aura/desktop.h"
|
| +#endif
|
| +
|
| // Passed as value of kTestType.
|
| static const char kBrowserTestType[] = "browser";
|
|
|
| @@ -269,7 +273,12 @@ void InProcessBrowserTest::RunTestOnMainThreadLoop() {
|
| #endif
|
|
|
| // Pump startup related events.
|
| +#if defined(USE_AURA)
|
| + MessageLoopForUI::current()->RunAllPendingWithDispatcher(
|
| + aura::Desktop::GetInstance()->GetDispatcher());
|
| +#else
|
| MessageLoopForUI::current()->RunAllPending();
|
| +#endif
|
| #if defined(OS_MACOSX)
|
| pool.Recycle();
|
| #endif
|
|
|