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

Side by Side Diff: chrome/browser/chrome_child_process_watcher.cc

Issue 2299993004: Migrate chrome/browser files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/chrome_child_process_watcher.h" 5 #include "chrome/browser/chrome_child_process_watcher.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "chrome/common/chrome_result_codes.h" 9 #include "chrome/common/chrome_result_codes.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "content/public/browser/browser_child_process_observer.h" 11 #include "content/public/browser/browser_child_process_observer.h"
12 #include "content/public/browser/child_process_data.h" 12 #include "content/public/browser/child_process_data.h"
13 13
14 namespace { 14 namespace {
15 15
16 void AnalyzeCrash(int exit_code) { 16 void AnalyzeCrash(int exit_code) {
17 if (exit_code == chrome::RESULT_CODE_INVALID_SANDBOX_STATE) { 17 if (exit_code == chrome::RESULT_CODE_INVALID_SANDBOX_STATE) {
18 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 18 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
(...skipping 13 matching lines...) Expand all
32 32
33 ChromeChildProcessWatcher::~ChromeChildProcessWatcher() { 33 ChromeChildProcessWatcher::~ChromeChildProcessWatcher() {
34 BrowserChildProcessObserver::Remove(this); 34 BrowserChildProcessObserver::Remove(this);
35 } 35 }
36 36
37 void ChromeChildProcessWatcher::BrowserChildProcessCrashed( 37 void ChromeChildProcessWatcher::BrowserChildProcessCrashed(
38 const content::ChildProcessData& data, 38 const content::ChildProcessData& data,
39 int exit_code) { 39 int exit_code) {
40 AnalyzeCrash(exit_code); 40 AnalyzeCrash(exit_code);
41 } 41 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | chrome/browser/component_updater/recovery_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698