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

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: typedef -> using, %lu -> PRIuS 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 namespace base {
9 class CommandLine;
10 } // namespace base
11
8 namespace installer { 12 namespace installer {
9 13
10 class InstallerState; 14 class InstallerState;
11 15
12 // Sets up the crash reporting system for the installer. 16 // Sets up the crash reporting system for the installer.
13 void ConfigureCrashReporting(const InstallerState& installer_state); 17 void ConfigureCrashReporting(const InstallerState& installer_state);
14 18
15 // Registers all crash keys used by the installer. 19 // Registers all crash keys used by the installer.
16 size_t RegisterCrashKeys(); 20 size_t RegisterCrashKeys();
17 21
18 // Sets all crash keys that are available during process startup. These do not 22 // Sets all crash keys that are available during process startup. These do not
19 // vary during execution so this function will not need to be called more than 23 // vary during execution so this function will not need to be called more than
20 // once. 24 // once.
21 void SetInitialCrashKeys(const InstallerState& installer_state); 25 void SetInitialCrashKeys(const InstallerState& installer_state);
22 26
27 // Sets crash keys for the switches given in |command_line|.
28 void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
29
23 } // namespace installer 30 } // namespace installer
24 31
25 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ 32 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_
OLDNEW
« no previous file with comments | « chrome/common/crash_keys_unittest.cc ('k') | chrome/installer/setup/installer_crash_reporting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698