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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database.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/sync_file_system/drive_backend/metadata_database.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database.cc b/chrome/browser/sync_file_system/drive_backend/metadata_database.cc
index e7bb76d1264ab19112c469c44b42ae357f98ab3e..96ed01f1a260df7769df9318c531819d6a7bf644 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database.cc
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database.cc
@@ -1629,8 +1629,8 @@ std::unique_ptr<base::ListValue> MetadataDatabase::DumpFiles(
std::unique_ptr<base::ListValue> MetadataDatabase::DumpDatabase() {
std::unique_ptr<base::ListValue> list(new base::ListValue);
- list->Append(DumpTrackers().release());
- list->Append(DumpMetadata().release());
+ list->Append(DumpTrackers());
+ list->Append(DumpMetadata());
return list;
}

Powered by Google App Engine
This is Rietveld 408576698