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)); |
} |