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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
index 0bf08f3a2d3247e25394ab7ac15e6395792db6a0..ff2437ee1e46519c1dd2e9683fe7b36ae46c7243 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/macros.h"
#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "build/build_config.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/cursor_client.h"
@@ -254,10 +255,10 @@ TEST_F(DesktopNativeWidgetAuraTest, WidgetCanBeDestroyedFromNestedLoop) {
// |RunWithDispatcher()| below.
base::RunLoop run_loop;
base::Closure quit_runloop = run_loop.QuitClosure();
- message_loop()->PostTask(FROM_HERE,
- base::Bind(&QuitNestedLoopAndCloseWidget,
- base::Passed(&widget),
- base::Unretained(&quit_runloop)));
+ message_loop()->task_runner()->PostTask(
+ FROM_HERE,
+ base::Bind(&QuitNestedLoopAndCloseWidget, base::Passed(&widget),
+ base::Unretained(&quit_runloop)));
run_loop.Run();
}
« no previous file with comments | « ui/views/controls/menu/menu_controller_unittest.cc ('k') | ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698