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

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

Issue 1416133003: Crashpad Windows: Use the Crashpad client instead of Breakpad on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add some stub gn files 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/app/DEPS ('k') | chrome/app/chrome_exe_main_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"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 if (env->GetVar("BREAKPAD_DUMP_LOCATION", &alternate_crash_dump_location)) { 285 if (env->GetVar("BREAKPAD_DUMP_LOCATION", &alternate_crash_dump_location)) {
286 base::FilePath crash_dumps_dir_path = 286 base::FilePath crash_dumps_dir_path =
287 base::FilePath::FromUTF8Unsafe(alternate_crash_dump_location); 287 base::FilePath::FromUTF8Unsafe(alternate_crash_dump_location);
288 PathService::Override(chrome::DIR_CRASH_DUMPS, crash_dumps_dir_path); 288 PathService::Override(chrome::DIR_CRASH_DUMPS, crash_dumps_dir_path);
289 } 289 }
290 290
291 return PathService::Get(chrome::DIR_CRASH_DUMPS, crash_dir); 291 return PathService::Get(chrome::DIR_CRASH_DUMPS, crash_dir);
292 } 292 }
293 293
294 size_t ChromeCrashReporterClient::RegisterCrashKeys() { 294 size_t ChromeCrashReporterClient::RegisterCrashKeys() {
295 // Note: On Windows this only affects the EXE. A separate invocation from
296 // child_process_logging_win.cc registers crash keys for Chrome.dll.
297 #if defined(OS_WIN) && defined(COMPONENT_BUILD)
298 // On Windows, this is not called in a component build, as in that case a
299 // single copy of 'base' is shared by the EXE and the various DLLs, and that
300 // copy is configured by child_process_logging_win.cc.
301 NOTREACHED();
302 return 0;
303 #else
304 return crash_keys::RegisterChromeCrashKeys(); 295 return crash_keys::RegisterChromeCrashKeys();
305 #endif
306 } 296 }
307 297
308 bool ChromeCrashReporterClient::IsRunningUnattended() { 298 bool ChromeCrashReporterClient::IsRunningUnattended() {
309 scoped_ptr<base::Environment> env(base::Environment::Create()); 299 scoped_ptr<base::Environment> env(base::Environment::Create());
310 return env->HasVar(env_vars::kHeadless); 300 return env->HasVar(env_vars::kHeadless);
311 } 301 }
312 302
313 bool ChromeCrashReporterClient::GetCollectStatsConsent() { 303 bool ChromeCrashReporterClient::GetCollectStatsConsent() {
314 #if defined(GOOGLE_CHROME_BUILD) 304 #if defined(GOOGLE_CHROME_BUILD)
315 bool is_official_chrome_build = true; 305 bool is_official_chrome_build = true;
(...skipping 29 matching lines...) Expand all
345 #endif 335 #endif
346 336
347 bool ChromeCrashReporterClient::EnableBreakpadForProcess( 337 bool ChromeCrashReporterClient::EnableBreakpadForProcess(
348 const std::string& process_type) { 338 const std::string& process_type) {
349 return process_type == switches::kRendererProcess || 339 return process_type == switches::kRendererProcess ||
350 process_type == switches::kPluginProcess || 340 process_type == switches::kPluginProcess ||
351 process_type == switches::kPpapiPluginProcess || 341 process_type == switches::kPpapiPluginProcess ||
352 process_type == switches::kZygoteProcess || 342 process_type == switches::kZygoteProcess ||
353 process_type == switches::kGpuProcess; 343 process_type == switches::kGpuProcess;
354 } 344 }
OLDNEW
« no previous file with comments | « chrome/app/DEPS ('k') | chrome/app/chrome_exe_main_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698