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

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

Issue 12310041: experiment with -Wimplicit-fallthrough Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase Created 6 years, 11 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
« no previous file with comments | « build/common.gypi ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // Report that this child process was killed. 289 // Report that this child process was killed.
290 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Killed2", 290 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Killed2",
291 data_.process_type, 291 data_.process_type,
292 PROCESS_TYPE_MAX); 292 PROCESS_TYPE_MAX);
293 break; 293 break;
294 } 294 }
295 case base::TERMINATION_STATUS_STILL_RUNNING: { 295 case base::TERMINATION_STATUS_STILL_RUNNING: {
296 UMA_HISTOGRAM_ENUMERATION("ChildProcess.DisconnectedAlive2", 296 UMA_HISTOGRAM_ENUMERATION("ChildProcess.DisconnectedAlive2",
297 data_.process_type, 297 data_.process_type,
298 PROCESS_TYPE_MAX); 298 PROCESS_TYPE_MAX);
299 break;
299 } 300 }
300 default: 301 default:
301 break; 302 break;
302 } 303 }
303 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Disconnected2", 304 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Disconnected2",
304 data_.process_type, 305 data_.process_type,
305 PROCESS_TYPE_MAX); 306 PROCESS_TYPE_MAX);
306 } 307 }
307 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 308 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
308 base::Bind(&NotifyProcessHostDisconnected, data_)); 309 base::Bind(&NotifyProcessHostDisconnected, data_));
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 353
353 void BrowserChildProcessHostImpl::OnProcessExitedEarly( 354 void BrowserChildProcessHostImpl::OnProcessExitedEarly(
354 base::WaitableEvent* event) { 355 base::WaitableEvent* event) {
355 DeleteProcessWaitableEvent(event); 356 DeleteProcessWaitableEvent(event);
356 OnChildDisconnected(); 357 OnChildDisconnected();
357 } 358 }
358 359
359 #endif 360 #endif
360 361
361 } // namespace content 362 } // namespace content
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698