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