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

Unified Diff: components/breakpad/browser/crash_handler_host_linux.cc

Issue 31243002: Move Linux/Android breakpad implementation to breakpad component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 2 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
Index: components/breakpad/browser/crash_handler_host_linux.cc
diff --git a/chrome/browser/crash_handler_host_linux.cc b/components/breakpad/browser/crash_handler_host_linux.cc
similarity index 98%
rename from chrome/browser/crash_handler_host_linux.cc
rename to components/breakpad/browser/crash_handler_host_linux.cc
index 2a2b6f5dc8a01514075096de751539d92ec568d8..2d04ef16b5392745fd75d2533d259a8297584cd6 100644
--- a/chrome/browser/crash_handler_host_linux.cc
+++ b/components/breakpad/browser/crash_handler_host_linux.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/crash_handler_host_linux.h"
+#include "components/breakpad/browser/crash_handler_host_linux.h"
#include <stdint.h>
#include <stdlib.h>
@@ -27,7 +27,7 @@
#include "breakpad/src/client/linux/handler/exception_handler.h"
#include "breakpad/src/client/linux/minidump_writer/linux_dumper.h"
#include "breakpad/src/client/linux/minidump_writer/minidump_writer.h"
-#include "chrome/app/breakpad_linux_impl.h"
+#include "components/breakpad/app/breakpad_linux_impl.h"
#include "content/public/browser/browser_thread.h"
#if defined(OS_ANDROID)
@@ -39,6 +39,8 @@
using content::BrowserThread;
using google_breakpad::ExceptionHandler;
+namespace breakpad {
+
namespace {
// The length of the control message:
@@ -128,7 +130,7 @@ void CrashHandlerHostLinux::OnFileCanReadWithoutBlocking(int fd) {
// for writing the minidump as well as a file descriptor and a credentials
// block so that they can't lie about their pid.
//
- // The message sender is in chrome/app/breakpad_linux.cc.
+ // The message sender is in components/breakpad/app/breakpad_linux.cc.
struct msghdr msg = {0};
struct iovec iov[kCrashIovSize];
@@ -450,3 +452,5 @@ void CrashHandlerHostLinux::WillDestroyCurrentMessageLoop() {
bool CrashHandlerHostLinux::IsShuttingDown() const {
return shutting_down_;
}
+
+} // namespace breakpad
« no previous file with comments | « components/breakpad/browser/crash_handler_host_linux.h ('k') | components/breakpad/hard_error_handler_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698