Index: chrome/browser/ui/views/menu_model_adapter_test.cc |
diff --git a/chrome/browser/ui/views/menu_model_adapter_test.cc b/chrome/browser/ui/views/menu_model_adapter_test.cc |
index b7b16a689546c392016192625a2090eb7491fe53..080f62d131acd7e54fe6836532d8a2110891acfa 100644 |
--- a/chrome/browser/ui/views/menu_model_adapter_test.cc |
+++ b/chrome/browser/ui/views/menu_model_adapter_test.cc |
@@ -233,7 +233,8 @@ class MenuModelAdapterTest : public ViewEventTestBase, |
menu_model_adapter_.BuildMenu(menu_); |
- base::MessageLoopForUI::current()->task_runner()->PostTask( |
+ ASSERT_TRUE(base::MessageLoopForUI::IsCurrent()); |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, CreateEventTask(this, &MenuModelAdapterTest::Step3)); |
} |