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/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: 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 { 12 namespace base {
13 class CommandLine; 13 class CommandLine;
14 class Version;
14 } // namespace base 15 } // namespace base
15 16
16 namespace installer { 17 namespace installer {
17 18
18 class InstallerState; 19 class InstallerState;
19 20
20 // Sets up the crash reporting system for the installer. 21 // Sets up the crash reporting system for the installer.
21 void ConfigureCrashReporting(const InstallerState& installer_state); 22 void ConfigureCrashReporting(const InstallerState& installer_state);
22 23
23 // Registers all crash keys used by the installer. 24 // Registers all crash keys used by the installer.
24 size_t RegisterCrashKeys(); 25 size_t RegisterCrashKeys();
25 26
26 // Sets all crash keys that are available during process startup. These do not 27 // Sets all crash keys that are available during process startup. These do not
27 // vary during execution so this function will not need to be called more than 28 // vary during execution so this function will not need to be called more than
28 // once. 29 // once.
29 void SetInitialCrashKeys(const InstallerState& installer_state); 30 void SetInitialCrashKeys(const InstallerState& installer_state);
30 31
31 // Sets crash keys for the switches given in |command_line|. 32 // Sets crash keys for the switches given in |command_line|.
32 void SetCrashKeysFromCommandLine(const base::CommandLine& command_line); 33 void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
33 34
35 // Sets a crash key recording the version of the product which was present
36 // before the installer was run.
37 void SetCurrentVersionCrashKey(const base::Version* current_version);
38
34 } // namespace installer 39 } // namespace installer
35 40
36 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ 41 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698