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

Unified Diff: chrome/browser/ui/views/status_icons/status_tray_win.cc

Issue 1160073004: chrome/browser/ui: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 6 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/ui/views/status_icons/status_tray_win.cc
diff --git a/chrome/browser/ui/views/status_icons/status_tray_win.cc b/chrome/browser/ui/views/status_icons/status_tray_win.cc
index 099fb6c20f284ac3dd85d2afc58c69c50f20b759..0b560bdb188fd64081b6e88d5bcb502827592364 100644
--- a/chrome/browser/ui/views/status_icons/status_tray_win.cc
+++ b/chrome/browser/ui/views/status_icons/status_tray_win.cc
@@ -7,7 +7,9 @@
#include <commctrl.h>
#include "base/bind.h"
+#include "base/location.h"
#include "base/profiler/scoped_tracker.h"
+#include "base/single_thread_task_runner.h"
#include "base/threading/non_thread_safe.h"
#include "base/threading/thread.h"
#include "base/win/wrapped_window_proc.h"
@@ -76,12 +78,11 @@ class StatusTrayStateChangerProxyImpl : public StatusTrayStateChangerProxy,
worker_thread_.Start();
++pending_requests_;
- worker_thread_.message_loop_proxy()->PostTaskAndReply(
+ worker_thread_.task_runner()->PostTaskAndReply(
FROM_HERE,
base::Bind(
&StatusTrayStateChangerProxyImpl::EnqueueChangeOnWorkerThread,
- icon_id,
- window),
+ icon_id, window),
base::Bind(&StatusTrayStateChangerProxyImpl::ChangeDone,
weak_factory_.GetWeakPtr()));
}
« no previous file with comments | « chrome/browser/ui/views/status_bubble_views.cc ('k') | chrome/browser/ui/views/toolbar/chevron_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698