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 ca752d0b48ece766f38ff4688322783ae0d18a6a..1676cf52be3d8f93d8f184c6aba789fd4ef4aba6 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(); |
} |
} |