Index: chrome/browser/extensions/api/media_galleries/media_galleries_api.cc |
diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc b/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc |
index 8955c29f1d4b45f59b14bd87829646ff43af7286..9984780697852ce7ea656830491c8d7a22b609a2 100644 |
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc |
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc |
@@ -585,7 +585,7 @@ void MediaGalleriesAddUserSelectedFolderFunction::ReturnGalleriesAndId( |
} |
} |
std::unique_ptr<base::DictionaryValue> results(new base::DictionaryValue); |
- results->SetWithoutPathExpansion("mediaFileSystems", list.release()); |
+ results->SetWithoutPathExpansion("mediaFileSystems", std::move(list)); |
results->SetIntegerWithoutPathExpansion("selectedFileSystemIndex", index); |
SetResult(std::move(results)); |
SendResponse(true); |