diff options
author | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-26 12:12:28 +0000 |
---|---|---|
committer | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-26 12:12:28 +0000 |
commit | 5616d24283e0b10539b57282986ce25362a9b89e (patch) | |
tree | c6cabcd0d3e1e84887cdb681e30fb54165958764 | |
parent | cc9d5503c4d6ba79700770218400b7d89f887474 (diff) | |
download | chromium_src-5616d24283e0b10539b57282986ce25362a9b89e.zip chromium_src-5616d24283e0b10539b57282986ce25362a9b89e.tar.gz chromium_src-5616d24283e0b10539b57282986ce25362a9b89e.tar.bz2 |
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
-rw-r--r-- | chrome/app/breakpad_win.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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<CrashReporterInfo> 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); } } } |