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

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

Issue 1478273003: Add an installer crash key for the currently installed version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@installer_crash_keys_cmdline
Patch Set: Rebase 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
« no previous file with comments | « chrome/installer/setup/install.cc ('k') | chrome/installer/setup/installer_crash_reporting.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 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 { 8 namespace base {
9 class CommandLine; 9 class CommandLine;
10 class Version;
10 } // namespace base 11 } // namespace base
11 12
12 namespace installer { 13 namespace installer {
13 14
14 class InstallerState; 15 class InstallerState;
15 16
16 // Sets up the crash reporting system for the installer. 17 // Sets up the crash reporting system for the installer.
17 void ConfigureCrashReporting(const InstallerState& installer_state); 18 void ConfigureCrashReporting(const InstallerState& installer_state);
18 19
19 // Registers all crash keys used by the installer. 20 // Registers all crash keys used by the installer.
20 size_t RegisterCrashKeys(); 21 size_t RegisterCrashKeys();
21 22
22 // Sets all crash keys that are available during process startup. These do not 23 // 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 24 // vary during execution so this function will not need to be called more than
24 // once. 25 // once.
25 void SetInitialCrashKeys(const InstallerState& installer_state); 26 void SetInitialCrashKeys(const InstallerState& installer_state);
26 27
27 // Sets crash keys for the switches given in |command_line|. 28 // Sets crash keys for the switches given in |command_line|.
28 void SetCrashKeysFromCommandLine(const base::CommandLine& command_line); 29 void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
29 30
31 // Sets a crash key recording the version of the product which was present
32 // before the installer was run.
33 void SetCurrentVersionCrashKey(const base::Version* current_version);
34
30 } // namespace installer 35 } // namespace installer
31 36
32 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ 37 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_
OLDNEW
« no previous file with comments | « chrome/installer/setup/install.cc ('k') | chrome/installer/setup/installer_crash_reporting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698