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

Unified Diff: chrome/browser/renderer_host/render_crash_handler_host_linux.cc

Issue 173345: Reverting 24220. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 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 | « chrome/app/breakpad_linux.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_crash_handler_host_linux.cc
===================================================================
--- chrome/browser/renderer_host/render_crash_handler_host_linux.cc (revision 24227)
+++ chrome/browser/renderer_host/render_crash_handler_host_linux.cc (working copy)
@@ -10,18 +10,15 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/uio.h>
-#include <stdlib.h>
#include <unistd.h>
#include <string>
#include <vector>
#include "base/eintr_wrapper.h"
-#include "base/file_path.h"
#include "base/format_macros.h"
#include "base/logging.h"
#include "base/message_loop.h"
-#include "base/path_service.h"
#include "base/rand_util.h"
#include "base/string_util.h"
#include "breakpad/linux/exception_handler.h"
@@ -29,7 +26,6 @@
#include "breakpad/linux/minidump_writer.h"
#include "chrome/app/breakpad_linux.h"
#include "chrome/browser/chrome_thread.h"
-#include "chrome/common/chrome_paths.h"
// expected prefix of the target of the /proc/self/fd/%d link for a socket
static const char kSocketLinkPrefix[] = "socket:[";
@@ -307,16 +303,9 @@
return;
}
- bool upload = true;
- FilePath dumps_path("/tmp");
- if (getenv("CHROME_HEADLESS")) {
- upload = false;
- PathService::Get(chrome::DIR_CRASH_DUMPS, &dumps_path);
- }
const uint64 rand = base::RandUint64();
const std::string minidump_filename =
- StringPrintf("%s/chromium-renderer-minidump-%016" PRIx64 ".dmp",
- dumps_path.value().c_str(), rand);
+ StringPrintf("/tmp/chromium-renderer-minidump-%016" PRIx64 ".dmp", rand);
if (!google_breakpad::WriteMinidump(minidump_filename.c_str(),
crashing_pid, crash_context,
kCrashContextSize)) {
@@ -345,8 +334,7 @@
info.guid_length = strlen(guid);
info.distro = distro;
info.distro_length = strlen(distro);
- info.upload = upload;
- HandleCrashDump(info);
+ UploadCrashDump(info);
}
void RenderCrashHandlerHostLinux::WillDestroyCurrentMessageLoop() {
« no previous file with comments | « chrome/app/breakpad_linux.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698