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

Unified Diff: extensions/common/permissions/permission_message_util.cc

Issue 594133003: Use base::StringPairs where appropriate from src/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/permissions/permission_message_util.cc
diff --git a/extensions/common/permissions/permission_message_util.cc b/extensions/common/permissions/permission_message_util.cc
index 070eabd2f0285cf3eb0efc8b50f8fa23f07acfa4..e98ad1f6ac6c8532a71d7f22888b5ec073f860cc 100644
--- a/extensions/common/permissions/permission_message_util.cc
+++ b/extensions/common/permissions/permission_message_util.cc
@@ -5,6 +5,7 @@
#include "extensions/common/permissions/permission_message_util.h"
#include "base/strings/string_number_conversions.h"
+#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
#include "extensions/common/permissions/permission_message.h"
#include "extensions/common/permissions/permission_set.h"
@@ -92,7 +93,7 @@ std::set<std::string> GetDistinctHosts(const URLPatternSet& host_patterns,
// Use a vector to preserve order (also faster than a map on small sets).
// Each item is a host split into two parts: host without RCDs and
// current best RCD.
- typedef std::vector<std::pair<std::string, std::string> > HostVector;
+ typedef base::StringPairs HostVector;
HostVector hosts_best_rcd;
for (URLPatternSet::const_iterator i = host_patterns.begin();
i != host_patterns.end();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698