summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_process_host.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 23:12:42 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 23:12:42 +0000
commit79084c2d01586797f762cbb308cb2c204dd9a164 (patch)
treede83878b22e4641589e8d7ea8bc0fe020c429876 /chrome/common/child_process_host.cc
parent755bbc4326d8c6c05900d681e232ec7b069e25c2 (diff)
downloadchromium_src-79084c2d01586797f762cbb308cb2c204dd9a164.zip
chromium_src-79084c2d01586797f762cbb308cb2c204dd9a164.tar.gz
chromium_src-79084c2d01586797f762cbb308cb2c204dd9a164.tar.bz2
Last patch in removing MessageLoop* caching.
BUG=25354 Review URL: http://codereview.chromium.org/353015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_host.cc')
-rw-r--r--chrome/common/child_process_host.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/common/child_process_host.cc b/chrome/common/child_process_host.cc
index e3077a39..69655b4 100644
--- a/chrome/common/child_process_host.cc
+++ b/chrome/common/child_process_host.cc
@@ -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 @@ bool ChildProcessHost::Send(IPC::Message* msg) {
}
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()
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_)