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

Unified Diff: content/browser/indexed_db/indexed_db_context_impl.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: content/browser/indexed_db/indexed_db_context_impl.cc
diff --git a/content/browser/indexed_db/indexed_db_context_impl.cc b/content/browser/indexed_db/indexed_db_context_impl.cc
index ec67dd2474e65233ce27742c5c6a0cd8a9228a12..8ec55b0c040a62e1dec9c0da73600d02ee9ae1e3 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.cc
+++ b/content/browser/indexed_db/indexed_db_context_impl.cc
@@ -266,16 +266,16 @@ base::ListValue* IndexedDBContextImpl::GetAllOriginsDetails() {
}
transaction_info->Set("scope", scope.release());
- transaction_list->Append(transaction_info.release());
+ transaction_list->Append(std::move(transaction_info));
}
db_info->Set("transactions", transaction_list.release());
- database_list->Append(db_info.release());
+ database_list->Append(std::move(db_info));
}
info->Set("databases", database_list.release());
}
- list->Append(info.release());
+ list->Append(std::move(info));
}
return list.release();
}

Powered by Google App Engine
This is Rietveld 408576698