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

Unified Diff: chrome/browser/extensions/extension_tab_util.cc

Issue 2051663003: base::ListValue::Append cleanup: pass unique_ptr instead of the released pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
Index: chrome/browser/extensions/extension_tab_util.cc
diff --git a/chrome/browser/extensions/extension_tab_util.cc b/chrome/browser/extensions/extension_tab_util.cc
index 68d6fe0f98a1331832d37f37e2582ec49485859e..f7ca730849d62952f1d3d0b5a88dac1b4de9ca89 100644
--- a/chrome/browser/extensions/extension_tab_util.cc
+++ b/chrome/browser/extensions/extension_tab_util.cc
@@ -357,8 +357,7 @@ std::unique_ptr<base::ListValue> ExtensionTabUtil::CreateTabList(
for (int i = 0; i < tab_strip->count(); ++i) {
tab_list->Append(
CreateTabObject(tab_strip->GetWebContentsAt(i), tab_strip, i, extension)
- ->ToValue()
- .release());
+ ->ToValue());
}
return tab_list;

Powered by Google App Engine
This is Rietveld 408576698