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

Unified Diff: chrome/browser/notifications/notification_object_proxy.cc

Issue 306032: Simplify threading in browser thread by making only ChromeThread deal with di... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: a few more simplifications Created 11 years, 2 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/notifications/notification_object_proxy.cc
===================================================================
--- chrome/browser/notifications/notification_object_proxy.cc (revision 30037)
+++ chrome/browser/notifications/notification_object_proxy.cc (working copy)
@@ -51,11 +51,9 @@
void NotificationObjectProxy::DeliverMessage(IPC::Message* message) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
- MessageLoop* io_loop = ChromeThread::GetMessageLoop(ChromeThread::IO);
- if (io_loop) {
- io_loop->PostTask(FROM_HERE,
- NewRunnableMethod(this, &NotificationObjectProxy::Send, message));
- }
+ ChromeThread::PostTask(
+ ChromeThread::IO, FROM_HERE,
+ NewRunnableMethod(this, &NotificationObjectProxy::Send, message));
}
// Deferred method which runs on the IO thread and sends a message to the

Powered by Google App Engine
This is Rietveld 408576698