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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 1476193002: Revert of Crashpad Windows: Use the Crashpad client instead of Breakpad on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « chrome/app/chrome_exe_main_win.cc ('k') | chrome/app/main_dll_loader_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index eef47b839c3ec9b5723a101b20a9debe1bcccdbf..cb27994b8fdcd829186db4620c494a8624350bfc 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -20,7 +20,6 @@
#include "base/time/time.h"
#include "base/trace_event/trace_event_impl.h"
#include "build/build_config.h"
-#include "chrome/app/chrome_crash_reporter_client.h"
#include "chrome/browser/chrome_content_browser_client.h"
#include "chrome/browser/defaults.h"
#include "chrome/common/channel_info.h"
@@ -41,7 +40,6 @@
#include "chrome/utility/chrome_content_utility_client.h"
#include "components/component_updater/component_updater_paths.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
-#include "components/crash/content/app/crash_reporter_client.h"
#include "components/version_info/version_info.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_paths.h"
@@ -57,7 +55,6 @@
#include "chrome/app/close_handle_hook_win.h"
#include "chrome/common/child_process_logging.h"
#include "chrome/common/v8_breakpad_support_win.h"
-#include "components/crash/content/app/crashpad.h"
#include "sandbox/win/src/sandbox.h"
#include "ui/base/resource/resource_bundle_win.h"
#endif
@@ -67,7 +64,7 @@
#include "chrome/app/chrome_main_mac.h"
#include "chrome/browser/mac/relauncher.h"
#include "chrome/common/mac/cfbundle_blocker.h"
-#include "components/crash/content/app/crashpad.h"
+#include "components/crash/content/app/crashpad_mac.h"
#include "components/crash/core/common/objc_zombie.h"
#include "ui/base/l10n/l10n_util_mac.h"
#endif
@@ -75,6 +72,8 @@
#if defined(OS_POSIX)
#include <locale.h>
#include <signal.h>
+#include "chrome/app/chrome_crash_reporter_client.h"
+#include "components/crash/content/app/crash_reporter_client.h"
#endif
#if !defined(DISABLE_NACL) && defined(OS_LINUX)
@@ -146,7 +145,7 @@
LAZY_INSTANCE_INITIALIZER;
#endif
-#if defined(OS_POSIX) || defined(OS_WIN)
+#if defined(OS_POSIX)
base::LazyInstance<ChromeCrashReporterClient>::Leaky g_chrome_crash_client =
LAZY_INSTANCE_INITIALIZER;
#endif
@@ -448,6 +447,7 @@
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
+
#if defined(OS_WIN)
// Browser should not be sandboxed.
@@ -665,7 +665,7 @@
std::string process_type =
command_line.GetSwitchValueASCII(switches::kProcessType);
-#if defined(OS_POSIX) || defined(OS_WIN)
+#if defined(OS_POSIX)
crash_reporter::SetCrashReporterClient(g_chrome_crash_client.Pointer());
#endif
@@ -678,16 +678,6 @@
InitMacCrashReporter(command_line, process_type);
#endif
-
-#if defined(OS_WIN)
- // TODO(scottmg): It would be nice to do this earlier to catch early crashes,
- // perhaps as early as WinMain in chrome.exe. This would require some code
- // restructuring to have paths and command lines set up, and also to handle
- // having some of the code live in chrome.exe, while having the database be
- // accessed by browser code in chrome.dll (to get a list of uploaded crashes
- // for chrome://crashes).
- crash_reporter::InitializeCrashpad(process_type.empty(), process_type);
-#endif // OS_WIN
#if defined(OS_WIN)
child_process_logging::Init();
« no previous file with comments | « chrome/app/chrome_exe_main_win.cc ('k') | chrome/app/main_dll_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698