OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/child/child_thread_impl.h" | 5 #include "content/child/child_thread_impl.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 // inflight that would addref it. | 717 // inflight that would addref it. |
718 Send(new ChildProcessHostMsg_ShutdownRequest); | 718 Send(new ChildProcessHostMsg_ShutdownRequest); |
719 } | 719 } |
720 | 720 |
721 void ChildThreadImpl::EnsureConnected() { | 721 void ChildThreadImpl::EnsureConnected() { |
722 VLOG(0) << "ChildThreadImpl::EnsureConnected()"; | 722 VLOG(0) << "ChildThreadImpl::EnsureConnected()"; |
723 base::Process::Current().Terminate(0, false); | 723 base::Process::Current().Terminate(0, false); |
724 } | 724 } |
725 | 725 |
726 bool ChildThreadImpl::IsInBrowserProcess() const { | 726 bool ChildThreadImpl::IsInBrowserProcess() const { |
727 return browser_process_io_runner_; | 727 return static_cast<bool>(browser_process_io_runner_); |
728 } | 728 } |
729 | 729 |
730 } // namespace content | 730 } // namespace content |
OLD | NEW |