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

Unified Diff: chrome/test/base/interactive_test_utils_views.cc

Issue 1395103003: Don't use base::MessageLoop::{Quit,QuitClosure} in chrome/ (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
« no previous file with comments | « chrome/test/base/interactive_test_utils_mac.mm ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/interactive_test_utils_views.cc
diff --git a/chrome/test/base/interactive_test_utils_views.cc b/chrome/test/base/interactive_test_utils_views.cc
index ac5047fa6fc3204231e7ce58185e7fa893490676..584ffb88a76012e6023f74bfbcf3ae6401f63f66 100644
--- a/chrome/test/base/interactive_test_utils_views.cc
+++ b/chrome/test/base/interactive_test_utils_views.cc
@@ -36,10 +36,9 @@ void ClickOnView(const Browser* browser, ViewID vid) {
views::View* view =
BrowserView::GetBrowserViewForBrowser(browser)->GetViewByID(vid);
DCHECK(view);
- MoveMouseToCenterAndPress(view,
- ui_controls::LEFT,
+ MoveMouseToCenterAndPress(view, ui_controls::LEFT,
ui_controls::DOWN | ui_controls::UP,
- base::MessageLoop::QuitClosure());
+ base::MessageLoop::QuitWhenIdleClosure());
content::RunMessageLoop();
}
« no previous file with comments | « chrome/test/base/interactive_test_utils_mac.mm ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698