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

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: merge up to r379824 Created 4 years, 9 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 | « no previous file | chrome/app/main_dll_loader_win.cc » ('j') | chrome/app/main_dll_loader_win.cc » ('J')
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/chrome_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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 185 }
186 186
187 int ChromeCrashReporterClient::GetResultCodeRespawnFailed() { 187 int ChromeCrashReporterClient::GetResultCodeRespawnFailed() {
188 return chrome::RESULT_CODE_RESPAWN_FAILED; 188 return chrome::RESULT_CODE_RESPAWN_FAILED;
189 } 189 }
190 190
191 void ChromeCrashReporterClient::InitBrowserCrashDumpsRegKey() { 191 void ChromeCrashReporterClient::InitBrowserCrashDumpsRegKey() {
192 #if !defined(NACL_WIN64) 192 #if !defined(NACL_WIN64)
193 if (GetCollectStatsConsent()){ 193 if (GetCollectStatsConsent()){
194 crash_reporting_metrics_.reset(new browser_watcher::CrashReportingMetrics( 194 crash_reporting_metrics_.reset(new browser_watcher::CrashReportingMetrics(
195 InstallUtil::IsChromeSxSProcess() 195 chrome::GetBrowserCrashDumpAttemptsRegistryPath()));
196 ? chrome::kBrowserCrashDumpAttemptsRegistryPathSxS
197 : chrome::kBrowserCrashDumpAttemptsRegistryPath));
198 } 196 }
199 #endif 197 #endif
200 } 198 }
201 199
202 void ChromeCrashReporterClient::RecordCrashDumpAttempt(bool is_real_crash) { 200 void ChromeCrashReporterClient::RecordCrashDumpAttempt(bool is_real_crash) {
203 #if !defined(NACL_WIN64) 201 #if !defined(NACL_WIN64)
204 if (!crash_reporting_metrics_) 202 if (!crash_reporting_metrics_)
205 return; 203 return;
206 204
207 if (is_real_crash) 205 if (is_real_crash)
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 #endif 341 #endif
344 342
345 bool ChromeCrashReporterClient::EnableBreakpadForProcess( 343 bool ChromeCrashReporterClient::EnableBreakpadForProcess(
346 const std::string& process_type) { 344 const std::string& process_type) {
347 return process_type == switches::kRendererProcess || 345 return process_type == switches::kRendererProcess ||
348 process_type == switches::kPluginProcess || 346 process_type == switches::kPluginProcess ||
349 process_type == switches::kPpapiPluginProcess || 347 process_type == switches::kPpapiPluginProcess ||
350 process_type == switches::kZygoteProcess || 348 process_type == switches::kZygoteProcess ||
351 process_type == switches::kGpuProcess; 349 process_type == switches::kGpuProcess;
352 } 350 }
OLDNEW
« no previous file with comments | « no previous file | chrome/app/main_dll_loader_win.cc » ('j') | chrome/app/main_dll_loader_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698