From a34d11324e0767acd94d8754e3a117e072492cf4 Mon Sep 17 00:00:00 2001 From: vmpstr Date: Mon, 21 Mar 2016 13:28:47 -0700 Subject: Add RetainedRef uses where needed. This patch adds RetainedRef uses where they are required. These changes will be required when we remove automatic unwrapping of scoped_refptrs in Bind. Please see the bug for more context. R=tzik@chromium.org, thakis@chromium.org, danakj@chromium.org BUG=589048 Review URL: https://codereview.chromium.org/1815363002 Cr-Commit-Position: refs/heads/master@{#382371} --- extensions/shell/browser/shell_extension_system.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extensions/shell') diff --git a/extensions/shell/browser/shell_extension_system.cc b/extensions/shell/browser/shell_extension_system.cc index e3a75bf..2ed9d7b 100644 --- a/extensions/shell/browser/shell_extension_system.cc +++ b/extensions/shell/browser/shell_extension_system.cc @@ -151,11 +151,11 @@ AppSorting* ShellExtensionSystem::app_sorting() { void ShellExtensionSystem::RegisterExtensionWithRequestContexts( const Extension* extension, const base::Closure& callback) { - BrowserThread::PostTaskAndReply(BrowserThread::IO, FROM_HERE, - base::Bind(&InfoMap::AddExtension, info_map(), - make_scoped_refptr(extension), - base::Time::Now(), false, false), - callback); + BrowserThread::PostTaskAndReply( + BrowserThread::IO, FROM_HERE, + base::Bind(&InfoMap::AddExtension, info_map(), + base::RetainedRef(extension), base::Time::Now(), false, false), + callback); } void ShellExtensionSystem::UnregisterExtensionWithRequestContexts( -- cgit v1.1