| Index: chrome/test/ui_test_utils.cc
|
| diff --git a/chrome/test/ui_test_utils.cc b/chrome/test/ui_test_utils.cc
|
| index 96d04b67ecc833c15d0c5f4be95cad427ffb9247..b334e05eaa7c63bdbd26e9c4a91fd10c9106359b 100644
|
| --- a/chrome/test/ui_test_utils.cc
|
| +++ b/chrome/test/ui_test_utils.cc
|
| @@ -395,6 +395,11 @@ void RunMessageLoop() {
|
| loop->SetNestableTasksAllowed(did_allow_task_nesting);
|
| }
|
|
|
| +void RunAllPendingInMessageLoop() {
|
| + MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
|
| + ui_test_utils::RunMessageLoop();
|
| +}
|
| +
|
| bool GetCurrentTabTitle(const Browser* browser, string16* title) {
|
| TabContents* tab_contents = browser->GetSelectedTabContents();
|
| if (!tab_contents)
|
|
|