| 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();
|
| }
|
| }
|
|
|