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

Unified Diff: ui/app_list/demo/app_list_demo_views.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
« no previous file with comments | « services/navigation/content_client/browser_main_parts.cc ('k') | ui/app_list/pagination_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/demo/app_list_demo_views.cc
diff --git a/ui/app_list/demo/app_list_demo_views.cc b/ui/app_list/demo/app_list_demo_views.cc
index 68399f1e4f714d670ea4f7bb1513257bb23ffbed..d9372876a6933463f7969e652831aaace567ec66 100644
--- a/ui/app_list/demo/app_list_demo_views.cc
+++ b/ui/app_list/demo/app_list_demo_views.cc
@@ -10,6 +10,7 @@
#include "base/command_line.h"
#include "base/macros.h"
#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "build/build_config.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_switches.h"
@@ -92,7 +93,7 @@ void DemoAppListViewDelegate::Dismiss() {
void DemoAppListViewDelegate::ViewClosing() {
base::MessageLoop* message_loop = base::MessageLoopForUI::current();
- message_loop->DeleteSoon(FROM_HERE, this);
+ message_loop->task_runner()->DeleteSoon(FROM_HERE, this);
message_loop->QuitWhenIdle();
}
« no previous file with comments | « services/navigation/content_client/browser_main_parts.cc ('k') | ui/app_list/pagination_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698