| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 #include "base/win/registry.h" | 26 #include "base/win/registry.h" |
| 27 #include "chrome/installer/util/google_chrome_sxs_distribution.h" | 27 #include "chrome/installer/util/google_chrome_sxs_distribution.h" |
| 28 #include "chrome/installer/util/install_util.h" | 28 #include "chrome/installer/util/install_util.h" |
| 29 #include "chrome/installer/util/util_constants.h" | 29 #include "chrome/installer/util/util_constants.h" |
| 30 #include "components/browser_watcher/crash_reporting_metrics_win.h" | 30 #include "components/browser_watcher/crash_reporting_metrics_win.h" |
| 31 #include "policy/policy_constants.h" | 31 #include "policy/policy_constants.h" |
| 32 #endif | 32 #endif |
| 33 | 33 |
| 34 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) | 34 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) |
| 35 #include "chrome/browser/crash_upload_list.h" | 35 #include "chrome/browser/crash_upload_list.h" |
| 36 #include "chrome/common/chrome_version_info_values.h" | 36 #include "components/version_info/version_info_values.h" |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 #if defined(OS_POSIX) | 39 #if defined(OS_POSIX) |
| 40 #include "base/debug/dump_without_crashing.h" | 40 #include "base/debug/dump_without_crashing.h" |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 #if defined(OS_ANDROID) | 43 #if defined(OS_ANDROID) |
| 44 #include "chrome/common/descriptors_android.h" | 44 #include "chrome/common/descriptors_android.h" |
| 45 #endif | 45 #endif |
| 46 | 46 |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 #if defined(GOOGLE_CHROME_BUILD) | 315 #if defined(GOOGLE_CHROME_BUILD) |
| 316 bool is_official_chrome_build = true; | 316 bool is_official_chrome_build = true; |
| 317 #else | 317 #else |
| 318 bool is_official_chrome_build = false; | 318 bool is_official_chrome_build = false; |
| 319 #endif | 319 #endif |
| 320 | 320 |
| 321 #if defined(OS_CHROMEOS) | 321 #if defined(OS_CHROMEOS) |
| 322 bool is_guest_session = base::CommandLine::ForCurrentProcess()->HasSwitch( | 322 bool is_guest_session = base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 323 chromeos::switches::kGuestSession); | 323 chromeos::switches::kGuestSession); |
| 324 bool is_stable_channel = | 324 bool is_stable_channel = |
| 325 chrome::VersionInfo::GetChannel() == chrome::VersionInfo::CHANNEL_STABLE; | 325 chrome::VersionInfo::GetChannel() == version_info::Channel::STABLE; |
| 326 | 326 |
| 327 if (is_guest_session && is_stable_channel) | 327 if (is_guest_session && is_stable_channel) |
| 328 return false; | 328 return false; |
| 329 #endif // defined(OS_CHROMEOS) | 329 #endif // defined(OS_CHROMEOS) |
| 330 | 330 |
| 331 #if defined(OS_ANDROID) | 331 #if defined(OS_ANDROID) |
| 332 // TODO(jcivelli): we should not initialize the crash-reporter when it was not | 332 // TODO(jcivelli): we should not initialize the crash-reporter when it was not |
| 333 // enabled. Right now if it is disabled we still generate the minidumps but we | 333 // enabled. Right now if it is disabled we still generate the minidumps but we |
| 334 // do not upload them. | 334 // do not upload them. |
| 335 return is_official_chrome_build; | 335 return is_official_chrome_build; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 348 bool ChromeCrashReporterClient::EnableBreakpadForProcess( | 348 bool ChromeCrashReporterClient::EnableBreakpadForProcess( |
| 349 const std::string& process_type) { | 349 const std::string& process_type) { |
| 350 return process_type == switches::kRendererProcess || | 350 return process_type == switches::kRendererProcess || |
| 351 process_type == switches::kPluginProcess || | 351 process_type == switches::kPluginProcess || |
| 352 process_type == switches::kPpapiPluginProcess || | 352 process_type == switches::kPpapiPluginProcess || |
| 353 process_type == switches::kZygoteProcess || | 353 process_type == switches::kZygoteProcess || |
| 354 process_type == switches::kGpuProcess; | 354 process_type == switches::kGpuProcess; |
| 355 } | 355 } |
| 356 | 356 |
| 357 } // namespace chrome | 357 } // namespace chrome |
| OLD | NEW |