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

Unified Diff: chrome/browser/ui/panels/panel_browser_view_browsertest.cc

Issue 8873032: Removing MessageLoop::QuitTask() from chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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: chrome/browser/ui/panels/panel_browser_view_browsertest.cc
diff --git a/chrome/browser/ui/panels/panel_browser_view_browsertest.cc b/chrome/browser/ui/panels/panel_browser_view_browsertest.cc
index 92dd90ac2dacad45a51b508bd7781cf1554a4d27..259bcd6b1f4525c363ab9a45055472656dfab049 100644
--- a/chrome/browser/ui/panels/panel_browser_view_browsertest.cc
+++ b/chrome/browser/ui/panels/panel_browser_view_browsertest.cc
@@ -148,7 +148,7 @@ class PanelBrowserViewTest : public BasePanelBrowserTest {
// The timer for the animation will only kick in as async task.
while (GetBoundsAnimator(panel)->is_animating()) {
MessageLoopForUI::current()->PostTask(FROM_HERE,
- new MessageLoop::QuitTask());
+ MessageLoop::QuitClosure());
MessageLoopForUI::current()->RunAllPending();
}
}
@@ -157,7 +157,7 @@ class PanelBrowserViewTest : public BasePanelBrowserTest {
// The timer for the animation will only kick in as async task.
while (GetSettingsButtonAnimator(panel)->is_animating()) {
MessageLoopForUI::current()->PostTask(FROM_HERE,
- new MessageLoop::QuitTask());
+ MessageLoop::QuitClosure());
MessageLoopForUI::current()->RunAllPending();
}
}

Powered by Google App Engine
This is Rietveld 408576698