From e4688f1c5af589bdb3d218a5b63bc07f34dcf9c8 Mon Sep 17 00:00:00 2001 From: Czipperz Date: Thu, 12 Jan 2017 16:55:26 -0800 Subject: [PATCH] Reorder BrowserProcess constructor to avoid invalid memory --- chromium_src/chrome/browser/browser_process.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chromium_src/chrome/browser/browser_process.cc b/chromium_src/chrome/browser/browser_process.cc index 2c07333210ea..a38d55f87159 100644 --- a/chromium_src/chrome/browser/browser_process.cc +++ b/chromium_src/chrome/browser/browser_process.cc @@ -9,10 +9,9 @@ BrowserProcess* g_browser_process = NULL; -BrowserProcess::BrowserProcess() { +BrowserProcess::BrowserProcess() + : print_job_manager_(new printing::PrintJobManager) { g_browser_process = this; - - print_job_manager_.reset(new printing::PrintJobManager); } BrowserProcess::~BrowserProcess() {