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

Unified Diff: components/drive/drive_app_registry.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
Index: components/drive/drive_app_registry.cc
diff --git a/components/drive/drive_app_registry.cc b/components/drive/drive_app_registry.cc
index f6cbc502cdf487607dc11f8af78947e6d531b176..37c976d2f5a21c8b52f91ad45c071c78594a27e0 100644
--- a/components/drive/drive_app_registry.cc
+++ b/components/drive/drive_app_registry.cc
@@ -7,8 +7,10 @@
#include <stddef.h>
#include <algorithm>
+#include <memory>
#include <set>
#include <utility>
+#include <vector>
#include "base/callback.h"
#include "base/files/file_path.h"
@@ -20,9 +22,10 @@
namespace {
// Add {selector -> app_id} mapping to |map|.
-void AddAppSelectorList(const ScopedVector<std::string>& selectors,
- const std::string& app_id,
- std::multimap<std::string, std::string>* map) {
+void AddAppSelectorList(
+ const std::vector<std::unique_ptr<std::string>>& selectors,
+ const std::string& app_id,
+ std::multimap<std::string, std::string>* map) {
for (size_t i = 0; i < selectors.size(); ++i)
map->insert(std::make_pair(*selectors[i], app_id));
}
« no previous file with comments | « components/drive/chromeos/file_system/search_operation.cc ('k') | components/drive/service/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698