Index: chrome/browser/extensions/crx_installer.cc |
=================================================================== |
--- chrome/browser/extensions/crx_installer.cc (revision 32148) |
+++ chrome/browser/extensions/crx_installer.cc (working copy) |
@@ -45,13 +45,16 @@ |
installer->expected_id_ = expected_id; |
installer->allow_privilege_increase_ = allow_privilege_increase; |
- installer->unpacker_ = new SandboxedExtensionUnpacker( |
- installer->source_file_, g_browser_process->resource_dispatcher_host(), |
- installer); |
+ scoped_refptr<SandboxedExtensionUnpacker> unpacker( |
+ new SandboxedExtensionUnpacker( |
+ installer->source_file_, |
+ g_browser_process->resource_dispatcher_host(), |
+ installer)); |
ChromeThread::PostTask( |
ChromeThread::FILE, FROM_HERE, |
- NewRunnableMethod(installer->unpacker_, &SandboxedExtensionUnpacker::Start)); |
+ NewRunnableMethod( |
+ unpacker.get(), &SandboxedExtensionUnpacker::Start)); |
} |
void CrxInstaller::InstallUserScript(const FilePath& source_file, |