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

Unified Diff: chrome/browser/apps/app_shim/app_shim_handler_mac.cc

Issue 2033753002: Remove use of deprecated MessageLoop methods in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: manual change Created 4 years, 7 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: chrome/browser/apps/app_shim/app_shim_handler_mac.cc
diff --git a/chrome/browser/apps/app_shim/app_shim_handler_mac.cc b/chrome/browser/apps/app_shim/app_shim_handler_mac.cc
index 25bb1255927427ef7000deb7e2c99a37c188d14d..e8d0a9128a1a3a5ddce604bb29a02737fdc20606 100644
--- a/chrome/browser/apps/app_shim/app_shim_handler_mac.cc
+++ b/chrome/browser/apps/app_shim/app_shim_handler_mac.cc
@@ -7,10 +7,12 @@
#include <map>
#include "base/bind.h"
+#include "base/location.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/singleton.h"
-#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "chrome/browser/apps/app_window_registry_util.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/lifetime/application_lifetime.h"
@@ -64,7 +66,7 @@ class AppShimHandlerRegistry : public content::NotificationObserver {
if (!browser_session_running_) {
// Post this to give AppWindows a chance to remove themselves from the
// registry.
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&TerminateIfNoAppWindows));
}
}

Powered by Google App Engine
This is Rietveld 408576698