Commit 9dfe2cf7 authored by Jochen Eisinger's avatar Jochen Eisinger Committed by Commit Bot

Remove references to file and process launcher threads

BUG=689520
R=primiano@chromium.org

Change-Id: Id7a87939f7df7b86e6b8e6a02ce0ea226e02a573
Reviewed-on: https://chromium-review.googlesource.com/544864Reviewed-by: default avatarPrimiano Tucci <primiano@chromium.org>
Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#481843}
parent a0b7787a
......@@ -18,8 +18,8 @@
#include "base/rand_util.h"
#include "base/stl_util.h"
#include "base/strings/stringprintf.h"
#include "base/task_scheduler/post_task.h"
#include "components/crash/content/app/breakpad_linux.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_data.h"
#include "content/public/browser/file_descriptor_info.h"
#include "content/public/browser/notification_service.h"
......@@ -27,8 +27,6 @@
#include "content/public/browser/render_process_host.h"
#include "jni/CrashDumpManager_jni.h"
using content::BrowserThread;
namespace breakpad {
CrashDumpManager::CrashDumpManager(const base::FilePath& crash_dump_dir,
......@@ -40,8 +38,6 @@ CrashDumpManager::~CrashDumpManager() {
void CrashDumpManager::OnChildStart(int child_process_id,
content::FileDescriptorInfo* mappings) {
DCHECK_CURRENTLY_ON(BrowserThread::PROCESS_LAUNCHER);
if (!breakpad::IsCrashReporterEnabled())
return;
......@@ -79,7 +75,6 @@ void CrashDumpManager::ProcessMinidump(
content::ProcessType process_type,
base::TerminationStatus termination_status,
base::android::ApplicationState app_state) {
DCHECK_CURRENTLY_ON(BrowserThread::FILE);
int64_t file_size = 0;
int r = base::GetFileSize(minidump_path, &file_size);
DCHECK(r) << "Failed to retrieve size for minidump "
......@@ -185,8 +180,8 @@ void CrashDumpManager::OnChildExit(int child_process_id,
minidump_path = iter->second;
child_process_id_to_minidump_path_.erase(iter);
}
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
base::PostTaskWithTraits(
FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(&CrashDumpManager::ProcessMinidump, minidump_path,
crash_dump_dir_, pid, process_type, termination_status,
app_state));
......
......@@ -85,7 +85,6 @@ void CrashDumpObserver::OnChildExit(int child_process_id,
void CrashDumpObserver::BrowserChildProcessStarted(
int child_process_id,
content::FileDescriptorInfo* mappings) {
DCHECK_CURRENTLY_ON(BrowserThread::PROCESS_LAUNCHER);
std::vector<Client*> registered_clients_copy;
{
base::AutoLock auto_lock(registered_clients_lock_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment