From f248b937f967bd58134a7698829c526ca37d7ad9 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 18 Oct 2013 17:27:17 +0000 Subject: [PATCH] Windows: Fix VS2012 compile error (issue #1109). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1474 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef/browser/scheme_handler.cc | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/libcef/browser/scheme_handler.cc b/libcef/browser/scheme_handler.cc index a8513c06c..fa9191821 100644 --- a/libcef/browser/scheme_handler.cc +++ b/libcef/browser/scheme_handler.cc @@ -25,16 +25,21 @@ void InstallInternalProtectedHandlers( content::ProtocolHandlerMap* protocol_handlers, net::FtpTransactionFactory* ftp_transaction_factory) { protocol_handlers->insert( - std::make_pair(chrome::kDataScheme, new net::DataProtocolHandler)); + std::make_pair(chrome::kDataScheme, + linked_ptr( + new net::DataProtocolHandler))); protocol_handlers->insert( - std::make_pair(chrome::kFileScheme, new net::FileProtocolHandler( - content::BrowserThread::GetBlockingPool()-> - GetTaskRunnerWithShutdownBehavior( - base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)))); + std::make_pair(chrome::kFileScheme, + linked_ptr( + new net::FileProtocolHandler( + content::BrowserThread::GetBlockingPool()-> + GetTaskRunnerWithShutdownBehavior( + base::SequencedWorkerPool::SKIP_ON_SHUTDOWN))))); #if !defined(DISABLE_FTP_SUPPORT) protocol_handlers->insert( std::make_pair(chrome::kFtpScheme, - new net::FtpProtocolHandler(ftp_transaction_factory))); + linked_ptr( + new net::FtpProtocolHandler(ftp_transaction_factory)))); #endif for (content::ProtocolHandlerMap::iterator it =