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

Side by Side Diff: chrome/app/chrome_crash_reporter_client.cc

Issue 1630923002: Remove PRODUCT_STRING_PATH from chrome_constants.h on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@c2_rm_PSP_profile_resetter
Patch Set: de-dup is_win blocks in GN too Created 4 years, 8 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
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/app/main_dll_loader_win.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/app/chrome_crash_reporter_client.h" 5 #include "chrome/app/chrome_crash_reporter_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/strings/string_split.h" 12 #include "base/strings/string_split.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "chrome/common/chrome_constants.h"
16 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
17 #include "chrome/common/chrome_paths_internal.h" 16 #include "chrome/common/chrome_paths_internal.h"
18 #include "chrome/common/chrome_result_codes.h" 17 #include "chrome/common/chrome_result_codes.h"
19 #include "chrome/common/crash_keys.h" 18 #include "chrome/common/crash_keys.h"
20 #include "chrome/common/env_vars.h" 19 #include "chrome/common/env_vars.h"
21 #include "chrome/installer/util/google_update_settings.h" 20 #include "chrome/installer/util/google_update_settings.h"
22 #include "content/public/common/content_switches.h" 21 #include "content/public/common/content_switches.h"
23 22
24 #if defined(OS_WIN) 23 #if defined(OS_WIN)
25 #include <windows.h> 24 #include <windows.h>
26 25
27 #include "base/file_version_info.h" 26 #include "base/file_version_info.h"
28 #include "base/win/registry.h" 27 #include "base/win/registry.h"
28 #include "chrome/common/metrics_constants_util_win.h"
29 #include "chrome/installer/util/google_chrome_sxs_distribution.h" 29 #include "chrome/installer/util/google_chrome_sxs_distribution.h"
30 #include "chrome/installer/util/install_util.h" 30 #include "chrome/installer/util/install_util.h"
31 #include "chrome/installer/util/util_constants.h" 31 #include "chrome/installer/util/util_constants.h"
32 #include "components/browser_watcher/crash_reporting_metrics_win.h" 32 #include "components/browser_watcher/crash_reporting_metrics_win.h"
33 #include "policy/policy_constants.h" 33 #include "policy/policy_constants.h"
34 #endif 34 #endif
35 35
36 #if defined(OS_POSIX) && !defined(OS_MACOSX) 36 #if defined(OS_POSIX) && !defined(OS_MACOSX)
37 #include "components/upload_list/crash_upload_list.h" 37 #include "components/upload_list/crash_upload_list.h"
38 #include "components/version_info/version_info_values.h" 38 #include "components/version_info/version_info_values.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 int ChromeCrashReporterClient::GetResultCodeRespawnFailed() { 189 int ChromeCrashReporterClient::GetResultCodeRespawnFailed() {
190 return chrome::RESULT_CODE_RESPAWN_FAILED; 190 return chrome::RESULT_CODE_RESPAWN_FAILED;
191 } 191 }
192 192
193 void ChromeCrashReporterClient::InitBrowserCrashDumpsRegKey() { 193 void ChromeCrashReporterClient::InitBrowserCrashDumpsRegKey() {
194 #if !defined(NACL_WIN64) 194 #if !defined(NACL_WIN64)
195 if (GetCollectStatsConsent()){ 195 if (GetCollectStatsConsent()){
196 crash_reporting_metrics_.reset(new browser_watcher::CrashReportingMetrics( 196 crash_reporting_metrics_.reset(new browser_watcher::CrashReportingMetrics(
197 InstallUtil::IsChromeSxSProcess() 197 chrome::GetBrowserCrashDumpAttemptsRegistryPath()));
198 ? chrome::kBrowserCrashDumpAttemptsRegistryPathSxS
199 : chrome::kBrowserCrashDumpAttemptsRegistryPath));
200 } 198 }
201 #endif 199 #endif
202 } 200 }
203 201
204 void ChromeCrashReporterClient::RecordCrashDumpAttempt(bool is_real_crash) { 202 void ChromeCrashReporterClient::RecordCrashDumpAttempt(bool is_real_crash) {
205 #if !defined(NACL_WIN64) 203 #if !defined(NACL_WIN64)
206 if (!crash_reporting_metrics_) 204 if (!crash_reporting_metrics_)
207 return; 205 return;
208 206
209 if (is_real_crash) 207 if (is_real_crash)
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 } 352 }
355 #endif 353 #endif
356 354
357 bool ChromeCrashReporterClient::EnableBreakpadForProcess( 355 bool ChromeCrashReporterClient::EnableBreakpadForProcess(
358 const std::string& process_type) { 356 const std::string& process_type) {
359 return process_type == switches::kRendererProcess || 357 return process_type == switches::kRendererProcess ||
360 process_type == switches::kPpapiPluginProcess || 358 process_type == switches::kPpapiPluginProcess ||
361 process_type == switches::kZygoteProcess || 359 process_type == switches::kZygoteProcess ||
362 process_type == switches::kGpuProcess; 360 process_type == switches::kGpuProcess;
363 } 361 }
OLDNEW
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/app/main_dll_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698