summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/child_thread.cc')
-rw-r--r--chrome/common/child_thread.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/common/child_thread.cc b/chrome/common/child_thread.cc
index c7b488a..5d61738 100644
--- a/chrome/common/child_thread.cc
+++ b/chrome/common/child_thread.cc
@@ -24,8 +24,7 @@ ChildThread::ChildThread() {
}
ChildThread::ChildThread(const std::string& channel_name)
- : channel_name_(channel_name),
- on_channel_error_called_(false) {
+ : channel_name_(channel_name) {
Init();
}
@@ -72,7 +71,6 @@ ChildThread::~ChildThread() {
}
void ChildThread::OnChannelError() {
- set_on_channel_error_called(true);
MessageLoop::current()->Quit();
}
@@ -162,7 +160,7 @@ ChildThread* ChildThread::current() {
}
void ChildThread::OnProcessFinalRelease() {
- if (on_channel_error_called_ || !check_with_browser_before_shutdown_) {
+ if (!check_with_browser_before_shutdown_) {
MessageLoop::current()->Quit();
return;
}