From 5616d24283e0b10539b57282986ce25362a9b89e Mon Sep 17 00:00:00 2001 From: "mnissler@chromium.org" Date: Mon, 26 Jul 2010 12:12:28 +0000 Subject: Make sure to initialize crash reporter thread with valid pointer. BUG=none TEST=none Review URL: http://codereview.chromium.org/3050015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53622 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/breakpad_win.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/app/breakpad_win.cc') diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc index 95d46fb..06ace8e 100644 --- a/chrome/app/breakpad_win.cc +++ b/chrome/app/breakpad_win.cc @@ -488,7 +488,7 @@ void InitCrashReporterWithDllPath(const std::wstring& dll_path) { // Query the custom_info now because if we do it in the thread it's going to // fail in the sandbox. The thread will delete this object. - scoped_ptr info(new CrashReporterInfo); + CrashReporterInfo* info(new CrashReporterInfo); info->process_type = command.GetSwitchValue(switches::kProcessType); if (info->process_type.empty()) info->process_type = L"browser"; @@ -501,14 +501,14 @@ void InitCrashReporterWithDllPath(const std::wstring& dll_path) { // it may take some times to initialize the crash_service process. We use // the Windows worker pool to make better reuse of the thread. if (info->process_type != L"browser") { - InitCrashReporterThread(info.release()); + InitCrashReporterThread(info); } else { if (QueueUserWorkItem( &InitCrashReporterThread, - info.release(), + info, WT_EXECUTELONGFUNCTION) == 0) { // We failed to queue to the worker pool, initialize in this thread. - InitCrashReporterThread(info.release()); + InitCrashReporterThread(info); } } } -- cgit v1.1