Index: chrome/browser/autocomplete/shortcuts_backend_factory.cc |
diff --git a/chrome/browser/autocomplete/shortcuts_backend_factory.cc b/chrome/browser/autocomplete/shortcuts_backend_factory.cc |
index 36c64cd55aa2b99df18f3d0413c5157fabe9810a..1e32b7a075641ae09ed18c9db2f7e50899c8b341 100644 |
--- a/chrome/browser/autocomplete/shortcuts_backend_factory.cc |
+++ b/chrome/browser/autocomplete/shortcuts_backend_factory.cc |
@@ -101,9 +101,10 @@ scoped_refptr<ShortcutsBackend> ShortcutsBackendFactory::CreateShortcutsBackend( |
content::BrowserThread::DB), |
profile->GetPath().Append(kShortcutsDatabaseName), suppress_db)); |
#if BUILDFLAG(ENABLE_EXTENSIONS) |
- ShortcutsExtensionsManager* extensions_manager = |
- new ShortcutsExtensionsManager(profile); |
- profile->SetUserData(kShortcutsExtensionsManagerKey, extensions_manager); |
+ auto extensions_manager = |
+ base::MakeUnique<ShortcutsExtensionsManager>(profile); |
+ profile->SetUserData(kShortcutsExtensionsManagerKey, |
+ std::move(extensions_manager)); |
#endif |
return backend->Init() ? backend : nullptr; |
} |