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

Unified Diff: components/drive/service/fake_drive_service.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: components/drive/service/fake_drive_service.cc
diff --git a/components/drive/service/fake_drive_service.cc b/components/drive/service/fake_drive_service.cc
index 22b65d3e868bd7561508d8b04fa9cd1042d7d5f6..6bffc0459aff2741dc4a3d186b479741740e14b1 100644
--- a/components/drive/service/fake_drive_service.cc
+++ b/components/drive/service/fake_drive_service.cc
@@ -293,7 +293,7 @@ void FakeDriveService::AddApp(const std::string& app_id,
base::ListValue* item_list;
CHECK(app_info_value_->GetListWithoutPathExpansion("items", &item_list));
- item_list->Append(value.release());
+ item_list->Append(std::move(value));
}
void FakeDriveService::RemoveAppByProductId(const std::string& product_id) {

Powered by Google App Engine
This is Rietveld 408576698