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

Side by Side Diff: content/browser/child_process_launcher.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/cert_store_impl.cc ('k') | content/browser/device_orientation/device_orientation_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698