Index: ash/system/web_notification/web_notification_tray.cc |
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc |
index a2d70a3720d51347b92904d9f2c51ecc0ecda124..45385d2752cd57039d150a224ce6b4270ca88c73 100644 |
--- a/ash/system/web_notification/web_notification_tray.cc |
+++ b/ash/system/web_notification/web_notification_tray.cc |
@@ -22,6 +22,7 @@ |
#include "base/i18n/number_formatting.h" |
#include "base/i18n/rtl.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "base/thread_task_runner_handle.h" |
#include "grit/ash_strings.h" |
#include "ui/aura/window.h" |
#include "ui/aura/window_event_dispatcher.h" |
@@ -444,7 +445,7 @@ void WebNotificationTray::OnMessageCenterTrayChanged() { |
// consecutively, and calling Update in the middle of those events will show |
// intermediate unread counts for a moment. |
should_update_tray_content_ = true; |
- base::MessageLoop::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, |
base::Bind(&WebNotificationTray::UpdateTrayContent, AsWeakPtr())); |
} |