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

Unified Diff: components/drive/chromeos/file_system/search_operation.cc

Issue 2613223002: Remove ScopedVector from base::JSONValueConverter (Closed)
Patch Set: Rebase and address comments from mmenke@ Created 3 years, 11 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
« no previous file with comments | « components/drive/chromeos/fake_file_system.cc ('k') | components/drive/drive_app_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/chromeos/file_system/search_operation.cc
diff --git a/components/drive/chromeos/file_system/search_operation.cc b/components/drive/chromeos/file_system/search_operation.cc
index a2608c3f4149251d42b87e9886886981cd143f9f..e2005cafef191b2db06da9b6d0c656e748b74686 100644
--- a/components/drive/chromeos/file_system/search_operation.cc
+++ b/components/drive/chromeos/file_system/search_operation.cc
@@ -5,6 +5,8 @@
#include "components/drive/chromeos/file_system/search_operation.h"
#include <stddef.h>
+
+#include <memory>
#include <string>
#include <utility>
#include <vector>
@@ -37,7 +39,8 @@ FileError ResolveSearchResultOnBlockingPool(
DCHECK(resource_metadata);
DCHECK(result);
- const ScopedVector<google_apis::FileResource>& entries = file_list->items();
+ const std::vector<std::unique_ptr<google_apis::FileResource>>& entries =
+ file_list->items();
result->reserve(entries.size());
for (size_t i = 0; i < entries.size(); ++i) {
std::string local_id;
« no previous file with comments | « components/drive/chromeos/fake_file_system.cc ('k') | components/drive/drive_app_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698