Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Unified Diff: ui/app_list/cocoa/test/apps_grid_controller_test_helper.mm

Issue 1402543002: Don't use base::MessageLoop::{Quit,QuitClosure} in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/app_list/cocoa/test/apps_grid_controller_test_helper.mm
diff --git a/ui/app_list/cocoa/test/apps_grid_controller_test_helper.mm b/ui/app_list/cocoa/test/apps_grid_controller_test_helper.mm
index cd2298ff70b2ba1ad265b0185f77a97aa4e88a31..0837c692aeef113d1ba9ac79a6c879b6b4175c83 100644
--- a/ui/app_list/cocoa/test/apps_grid_controller_test_helper.mm
+++ b/ui/app_list/cocoa/test/apps_grid_controller_test_helper.mm
@@ -90,13 +90,14 @@ size_t AppsGridControllerTestHelper::GetPageIndexForItem(int item_id) const {
}
void AppsGridControllerTestHelper::DelayForCollectionView() {
- message_loop_.PostDelayedTask(FROM_HERE, base::MessageLoop::QuitClosure(),
+ message_loop_.PostDelayedTask(FROM_HERE,
+ base::MessageLoop::QuitWhenIdleClosure(),
base::TimeDelta::FromMilliseconds(100));
message_loop_.Run();
}
void AppsGridControllerTestHelper::SinkEvents() {
- message_loop_.PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
+ message_loop_.PostTask(FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
message_loop_.Run();
}
« no previous file with comments | « no previous file | ui/app_list/pagination_model_unittest.cc » ('j') | ui/events/gesture_detection/gesture_provider_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698