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

Side by Side Diff: chrome/app/chrome_crash_reporter_client_win.h

Issue 2372633002: Use the correct product/version for postmortem reports (Closed)
Patch Set: Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_ 5 #ifndef CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_
6 #define CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_ 6 #define CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h"
9 #include "components/crash/content/app/crash_reporter_client.h" 10 #include "components/crash/content/app/crash_reporter_client.h"
10 11
11 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient { 12 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient {
12 public: 13 public:
13 #if !defined(NACL_WIN64) 14 #if !defined(NACL_WIN64)
14 // Instantiates a process wide instance of the ChromeCrashReporterClient 15 // Instantiates a process wide instance of the ChromeCrashReporterClient
15 // class and initializes crash reporting for the process. The instance is 16 // class and initializes crash reporting for the process. The instance is
16 // leaked. 17 // leaked.
17 static void InitializeCrashReportingForProcess(); 18 static void InitializeCrashReportingForProcess();
18 #endif 19 #endif
(...skipping 26 matching lines...) Expand all
45 46
46 bool GetCollectStatsConsent() override; 47 bool GetCollectStatsConsent() override;
47 48
48 bool GetCollectStatsInSample() override; 49 bool GetCollectStatsInSample() override;
49 50
50 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled) override; 51 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled) override;
51 52
52 bool EnableBreakpadForProcess(const std::string& process_type) override; 53 bool EnableBreakpadForProcess(const std::string& process_type) override;
53 54
54 private: 55 private:
56 // Cached to ensure consistency across calls and because the functions that
grt (UTC plus 2) 2016/09/26 18:59:06 while i think this caching is ultimately the right
manzagop (departed) 2016/09/27 19:37:52 I've made the switch to directly call install stat
57 // populate these are known to unexpectedly experience crashes on some users'
58 // machines.
59 base::string16 exe_path_;
60 base::string16 product_name_;
61 base::string16 version_;
62 base::string16 special_build_;
63 base::string16 channel_name_;
64
55 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient); 65 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient);
56 }; 66 };
57 67
58 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_ 68 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/app/chrome_crash_reporter_client_win.cc » ('j') | chrome/app/chrome_crash_reporter_client_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698