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

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

Issue 11189068: Changing minidump process generation to be in-process on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved patch description. Created 8 years, 2 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/file_path.h" 10 #include "base/file_path.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 content::PROCESS_TYPE_MAX); 259 content::PROCESS_TYPE_MAX);
260 // Notify in the main loop of the disconnection. 260 // Notify in the main loop of the disconnection.
261 Notify(content::NOTIFICATION_CHILD_PROCESS_HOST_DISCONNECTED); 261 Notify(content::NOTIFICATION_CHILD_PROCESS_HOST_DISCONNECTED);
262 delete delegate_; // Will delete us 262 delete delegate_; // Will delete us
263 } 263 }
264 264
265 bool BrowserChildProcessHostImpl::Send(IPC::Message* message) { 265 bool BrowserChildProcessHostImpl::Send(IPC::Message* message) {
266 return child_process_host_->Send(message); 266 return child_process_host_->Send(message);
267 } 267 }
268 268
269 void BrowserChildProcessHostImpl::OnProcessLaunched() { 269 void BrowserChildProcessHostImpl::OnProcessLaunched(
270 const content::FDInfoList& mapped_files) {
270 if (!child_process_->GetHandle()) { 271 if (!child_process_->GetHandle()) {
271 delete delegate_; // Will delete us 272 delete delegate_; // Will delete us
272 return; 273 return;
273 } 274 }
274 data_.handle = child_process_->GetHandle(); 275 data_.handle = child_process_->GetHandle();
275 delegate_->OnProcessLaunched(); 276 delegate_->OnProcessLaunched();
276 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698