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

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

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 years, 8 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/browser_child_process_host_impl.h" 5 #include "content/browser/browser_child_process_host_impl.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 void BrowserChildProcessHostImpl::NotifyProcessInstanceCreated( 214 void BrowserChildProcessHostImpl::NotifyProcessInstanceCreated(
215 const ChildProcessData& data) { 215 const ChildProcessData& data) {
216 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 216 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
217 FOR_EACH_OBSERVER(BrowserChildProcessObserver, g_observers.Get(), 217 FOR_EACH_OBSERVER(BrowserChildProcessObserver, g_observers.Get(),
218 BrowserChildProcessInstanceCreated(data)); 218 BrowserChildProcessInstanceCreated(data));
219 } 219 }
220 220
221 base::TerminationStatus BrowserChildProcessHostImpl::GetTerminationStatus( 221 base::TerminationStatus BrowserChildProcessHostImpl::GetTerminationStatus(
222 int* exit_code) { 222 int* exit_code) {
223 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 223 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
224 if (!child_process_.get()) // If the delegate doesn't use Launch() helper. 224 if (!child_process_) // If the delegate doesn't use Launch() helper.
225 return base::GetTerminationStatus(data_.handle, exit_code); 225 return base::GetTerminationStatus(data_.handle, exit_code);
226 return child_process_->GetChildTerminationStatus(false /* known_dead */, 226 return child_process_->GetChildTerminationStatus(false /* known_dead */,
227 exit_code); 227 exit_code);
228 } 228 }
229 229
230 bool BrowserChildProcessHostImpl::OnMessageReceived( 230 bool BrowserChildProcessHostImpl::OnMessageReceived(
231 const IPC::Message& message) { 231 const IPC::Message& message) {
232 return delegate_->OnMessageReceived(message); 232 return delegate_->OnMessageReceived(message);
233 } 233 }
234 234
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 void BrowserChildProcessHostImpl::OnProcessExitedEarly( 338 void BrowserChildProcessHostImpl::OnProcessExitedEarly(
339 base::WaitableEvent* event) { 339 base::WaitableEvent* event) {
340 DeleteProcessWaitableEvent(event); 340 DeleteProcessWaitableEvent(event);
341 OnChildDisconnected(); 341 OnChildDisconnected();
342 } 342 }
343 343
344 #endif 344 #endif
345 345
346 } // namespace content 346 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_dispatcher_host.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698