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

Unified Diff: content/child/child_thread_impl.cc

Issue 1398153002: Don't use base::MessageLoop::{Quit,QuitClosure} in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 89231ab5a87c16ab1f0124023e863527f094419c..141d90e57f093584b4f41a6f242cccf233d7fc8d 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -545,7 +545,7 @@ void ChildThreadImpl::OnChannelConnected(int32 peer_pid) {
void ChildThreadImpl::OnChannelError() {
set_on_channel_error_called(true);
- base::MessageLoop::current()->Quit();
+ base::MessageLoop::current()->QuitWhenIdle();
}
bool ChildThreadImpl::Send(IPC::Message* msg) {
@@ -665,7 +665,7 @@ void ChildThreadImpl::OnProcessBackgrounded(bool backgrounded) {
}
void ChildThreadImpl::OnShutdown() {
- base::MessageLoop::current()->Quit();
+ base::MessageLoop::current()->QuitWhenIdle();
}
#if defined(IPC_MESSAGE_LOG_ENABLED)
@@ -720,7 +720,7 @@ void ChildThreadImpl::ShutdownThread() {
void ChildThreadImpl::OnProcessFinalRelease() {
if (on_channel_error_called_) {
- base::MessageLoop::current()->Quit();
+ base::MessageLoop::current()->QuitWhenIdle();
return;
}
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698