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

Unified Diff: content/child/notifications/notification_manager.cc

Issue 897733002: worker: Use standard task-runners to run notification image loader callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whoops Created 5 years, 10 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 | « content/child/notifications/notification_image_loader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/notifications/notification_manager.cc
diff --git a/content/child/notifications/notification_manager.cc b/content/child/notifications/notification_manager.cc
index 39cb604c996e598cfe231920cd5ad5c4f9a3c80a..310f0af74d1bfd94302680be526e6d0f43b14b60 100644
--- a/content/child/notifications/notification_manager.cc
+++ b/content/child/notifications/notification_manager.cc
@@ -6,6 +6,7 @@
#include "base/lazy_instance.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/thread_task_runner_handle.h"
#include "base/threading/thread_local.h"
#include "content/child/notifications/notification_data_conversions.h"
#include "content/child/notifications/notification_dispatcher.h"
@@ -212,11 +213,9 @@ scoped_refptr<NotificationImageLoader> NotificationManager::CreateImageLoader(
new NotificationImageLoader(callback));
main_thread_task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&NotificationImageLoader::StartOnMainThread,
- pending_notification,
- image_url,
- CurrentWorkerId()));
+ FROM_HERE, base::Bind(&NotificationImageLoader::StartOnMainThread,
+ pending_notification, image_url,
+ base::ThreadTaskRunnerHandle::Get()));
return pending_notification;
}
« no previous file with comments | « content/child/notifications/notification_image_loader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698