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

Unified Diff: chrome/common/child_process_host.cc

Issue 353015: Last patch in removing MessageLoop* caching. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/browser/utility_process_host_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/child_process_host.cc
===================================================================
--- chrome/common/child_process_host.cc (revision 30863)
+++ chrome/common/child_process_host.cc (working copy)
@@ -8,7 +8,6 @@
#include "base/compiler_specific.h"
#include "base/file_path.h"
#include "base/logging.h"
-#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/process_util.h"
#include "base/singleton.h"
@@ -152,8 +151,8 @@
}
void ChildProcessHost::Notify(NotificationType type) {
- resource_dispatcher_host_->ui_loop()->PostTask(
- FROM_HERE, new ChildNotificationTask(type, this));
+ ChromeThread::PostTask(
+ ChromeThread::UI, FROM_HERE, new ChildNotificationTask(type, this));
}
void ChildProcessHost::OnChildDied() {
@@ -249,9 +248,7 @@
ChildProcessHost::Iterator::Iterator(ProcessType type)
: all_(false), type_(type) {
- // IO loop can be NULL in unit tests.
- DCHECK(!MessageLoop::current() ||
- ChromeThread::CurrentlyOn(ChromeThread::IO)) <<
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)) <<
"ChildProcessInfo::Iterator must be used on the IO thread.";
iterator_ = Singleton<ChildProcessList>::get()->begin();
if (!Done() && (*iterator_)->type() != type_)
« no previous file with comments | « chrome/browser/utility_process_host_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698