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

Unified Diff: components/crash/app/crash_reporter_client.cc

Issue 1315303004: Turn components/crash into a layered component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/crash/app/crash_reporter_client.h ('k') | components/crash/app/crashpad_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/app/crash_reporter_client.cc
diff --git a/components/crash/app/crash_reporter_client.cc b/components/crash/app/crash_reporter_client.cc
deleted file mode 100644
index 18cc67e23d3d616ddb7d412e82c3ac6857e9bb29..0000000000000000000000000000000000000000
--- a/components/crash/app/crash_reporter_client.cc
+++ /dev/null
@@ -1,148 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/crash/app/crash_reporter_client.h"
-
-#include "base/files/file_path.h"
-#include "base/logging.h"
-
-namespace crash_reporter {
-
-namespace {
-
-CrashReporterClient* g_client = NULL;
-
-} // namespace
-
-void SetCrashReporterClient(CrashReporterClient* client) {
- g_client = client;
-}
-
-CrashReporterClient* GetCrashReporterClient() {
- DCHECK(g_client);
- return g_client;
-}
-
-CrashReporterClient::CrashReporterClient() {}
-CrashReporterClient::~CrashReporterClient() {}
-
-#if !defined(OS_MACOSX)
-void CrashReporterClient::SetCrashReporterClientIdFromGUID(
- const std::string& client_guid) {
-}
-#endif
-
-#if defined(OS_WIN)
-bool CrashReporterClient::GetAlternativeCrashDumpLocation(
- base::FilePath* crash_dir) {
- return false;
-}
-
-void CrashReporterClient::GetProductNameAndVersion(
- const base::FilePath& exe_path,
- base::string16* product_name,
- base::string16* version,
- base::string16* special_build,
- base::string16* channel_name) {
-}
-
-bool CrashReporterClient::ShouldShowRestartDialog(base::string16* title,
- base::string16* message,
- bool* is_rtl_locale) {
- return false;
-}
-
-bool CrashReporterClient::AboutToRestart() {
- return false;
-}
-
-bool CrashReporterClient::GetDeferredUploadsSupported(bool is_per_usr_install) {
- return false;
-}
-
-bool CrashReporterClient::GetIsPerUserInstall(const base::FilePath& exe_path) {
- return true;
-}
-
-bool CrashReporterClient::GetShouldDumpLargerDumps(bool is_per_user_install) {
- return false;
-}
-
-int CrashReporterClient::GetResultCodeRespawnFailed() {
- return 0;
-}
-
-void CrashReporterClient::InitBrowserCrashDumpsRegKey() {
-}
-
-void CrashReporterClient::RecordCrashDumpAttempt(bool is_real_crash) {
-}
-
-void CrashReporterClient::RecordCrashDumpAttemptResult(bool is_real_crash,
- bool succeeded) {
-}
-#endif
-
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
-void CrashReporterClient::GetProductNameAndVersion(const char** product_name,
- const char** version) {
-}
-
-base::FilePath CrashReporterClient::GetReporterLogFilename() {
- return base::FilePath();
-}
-
-bool CrashReporterClient::HandleCrashDump(const char* crashdump_filename) {
- return false;
-}
-#endif
-
-bool CrashReporterClient::GetCrashDumpLocation(base::FilePath* crash_dir) {
- return false;
-}
-
-size_t CrashReporterClient::RegisterCrashKeys() {
- return 0;
-}
-
-bool CrashReporterClient::IsRunningUnattended() {
- return true;
-}
-
-bool CrashReporterClient::GetCollectStatsConsent() {
- return false;
-}
-
-#if defined(OS_WIN) || defined(OS_MACOSX)
-bool CrashReporterClient::ReportingIsEnforcedByPolicy(bool* breakpad_enabled) {
- return false;
-}
-#endif
-
-#if defined(OS_ANDROID)
-int CrashReporterClient::GetAndroidMinidumpDescriptor() {
- return 0;
-}
-
-bool CrashReporterClient::ShouldEnableBreakpadMicrodumps() {
-// Always enable microdumps on Android when stripping unwind tables. Rationale:
-// when unwind tables are stripped out (to save binary size) the stack traces
-// produced locally in the case of a crash / CHECK are meaningless. In order to
-// provide meaningful development diagnostics (and keep the binary size savings)
-// on Android we attach a secondary crash handler which serializes a reduced
-// form of logcat on the console.
-#if defined(NO_UNWIND_TABLES)
- return true;
-#else
- return false;
-#endif
-}
-#endif
-
-bool CrashReporterClient::EnableBreakpadForProcess(
- const std::string& process_type) {
- return false;
-}
-
-} // namespace crash_reporter
« no previous file with comments | « components/crash/app/crash_reporter_client.h ('k') | components/crash/app/crashpad_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698