Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Unified Diff: extensions/browser/extension_prefs.cc

Issue 2294653002: Some linked_ptr -> unique_ptr conversion in extensions/browser. (Closed)
Patch Set: address comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/extension_prefs.h ('k') | extensions/browser/external_provider_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_prefs.cc
diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc
index f2fd42425fc8f2373a3902547f1573a2ef9f09dd..56645a72564cfaf2ff64c922cec00eb1f5edd514 100644
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -1281,7 +1281,7 @@ ExtensionPrefs::GetInstalledExtensionsInfo() const {
std::unique_ptr<ExtensionInfo> info =
GetInstalledExtensionInfo(extension_id.key());
if (info)
- extensions_info->push_back(linked_ptr<ExtensionInfo>(info.release()));
+ extensions_info->push_back(std::move(info));
}
return extensions_info;
@@ -1304,7 +1304,7 @@ ExtensionPrefs::GetUninstalledExtensionsInfo() const {
std::unique_ptr<ExtensionInfo> info =
GetInstalledInfoHelper(extension_id.key(), ext);
if (info)
- extensions_info->push_back(linked_ptr<ExtensionInfo>(info.release()));
+ extensions_info->push_back(std::move(info));
}
return extensions_info;
@@ -1435,7 +1435,7 @@ ExtensionPrefs::GetAllDelayedInstallInfo() const {
std::unique_ptr<ExtensionInfo> info =
GetDelayedInstallInfo(extension_id.key());
if (info)
- extensions_info->push_back(linked_ptr<ExtensionInfo>(info.release()));
+ extensions_info->push_back(std::move(info));
}
return extensions_info;
« no previous file with comments | « extensions/browser/extension_prefs.h ('k') | extensions/browser/external_provider_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698