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/browser/child_process_launcher.h" | 5 #include "content/browser/child_process_launcher.h" |
6 | 6 |
7 #include <utility> // For std::pair. | 7 #include <utility> // For std::pair. |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 void ChildProcessLauncher::SetProcessBackgrounded(bool background) { | 488 void ChildProcessLauncher::SetProcessBackgrounded(bool background) { |
489 BrowserThread::PostTask( | 489 BrowserThread::PostTask( |
490 BrowserThread::PROCESS_LAUNCHER, FROM_HERE, | 490 BrowserThread::PROCESS_LAUNCHER, FROM_HERE, |
491 base::Bind( | 491 base::Bind( |
492 &ChildProcessLauncher::Context::SetProcessBackgrounded, | 492 &ChildProcessLauncher::Context::SetProcessBackgrounded, |
493 GetHandle(), background)); | 493 GetHandle(), background)); |
494 } | 494 } |
495 | 495 |
496 void ChildProcessLauncher::SetTerminateChildOnShutdown( | 496 void ChildProcessLauncher::SetTerminateChildOnShutdown( |
497 bool terminate_on_shutdown) { | 497 bool terminate_on_shutdown) { |
498 if (context_) | 498 if (context_.get()) |
499 context_->set_terminate_child_on_shutdown(terminate_on_shutdown); | 499 context_->set_terminate_child_on_shutdown(terminate_on_shutdown); |
500 } | 500 } |
501 | 501 |
502 } // namespace content | 502 } // namespace content |
OLD | NEW |