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

Side by Side Diff: chrome/installer/setup/installer_crash_reporting.h

Issue 1481933002: Move crash keys for command-line switches to components/crash so they can be set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@installer_crash_keys
Patch Set: Created 5 years 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 #ifndef CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ 5 #ifndef CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_
6 #define CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ 6 #define CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/debug/crash_logging.h" 10 #include "base/debug/crash_logging.h"
11 11
12 namespace base {
13 class CommandLine;
14 } // namespace base
15
12 namespace installer { 16 namespace installer {
13 17
14 class InstallerState; 18 class InstallerState;
15 19
16 // Sets up the crash reporting system for the installer. 20 // Sets up the crash reporting system for the installer.
17 void ConfigureCrashReporting(const InstallerState& installer_state); 21 void ConfigureCrashReporting(const InstallerState& installer_state);
18 22
19 // Registers all crash keys used by the installer. 23 // Registers all crash keys used by the installer.
20 size_t RegisterCrashKeys(); 24 size_t RegisterCrashKeys();
21 25
22 // Sets all crash keys that are available during process startup. These do not 26 // Sets all crash keys that are available during process startup. These do not
23 // vary during execution so this function will not need to be called more than 27 // vary during execution so this function will not need to be called more than
24 // once. 28 // once.
25 void SetInitialCrashKeys(const InstallerState& installer_state); 29 void SetInitialCrashKeys(const InstallerState& installer_state);
26 30
31 // Sets crash keys for the switches given in |command_line|.
32 void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
33
27 } // namespace installer 34 } // namespace installer
28 35
29 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ 36 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698