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

Unified Diff: chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.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/api/sync_file_system/extension_sync_event_observer.cc
diff --git a/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc b/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc
index 911e9e4faa03f291ea4cff550fd9b30081b363d2..ba11685f57da325dd951e8a51fe71895b1e3f248 100644
--- a/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc
+++ b/chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc
@@ -98,7 +98,7 @@ void ExtensionSyncEventObserver::OnFileSynced(
CreateDictionaryValueForFileSystemEntry(url, file_type));
if (!entry)
return;
- params->Append(entry.release());
+ params->Append(std::move(entry));
// Status, SyncAction and any optional notes to go here.
api::sync_file_system::FileStatus status_enum =

Powered by Google App Engine
This is Rietveld 408576698