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

Unified Diff: base/strings/string_split.h

Issue 22031002: Omnibox: Create DemoteByType Experiment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter's comments and Alexei's improvements. Created 7 years, 4 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: base/strings/string_split.h
diff --git a/base/strings/string_split.h b/base/strings/string_split.h
index 2803752d03e1ee4164388fabc1575f06bd3232e0..d86bb880c9cf4fa538bfd09b907859699f97d5a3 100644
--- a/base/strings/string_split.h
+++ b/base/strings/string_split.h
@@ -36,11 +36,13 @@ BASE_EXPORT bool SplitStringIntoKeyValues(const std::string& line,
std::string* key,
std::vector<std::string>* values);
+typedef std::vector<std::pair<std::string, std::string> > VectorOfKeyValuePairs;
Peter Kasting 2013/08/06 22:19:40 Nit: "KeyValuePairs" is shorter, just as clear, an
Mark P 2013/08/06 22:44:49 Okay.
Peter Kasting 2013/08/07 00:59:01 Anyone in base/OWNERS. For example, brettw.
+
BASE_EXPORT bool SplitStringIntoKeyValuePairs(
const std::string& line,
char key_value_delimiter,
char key_value_pair_delimiter,
- std::vector<std::pair<std::string, std::string> >* kv_pairs);
+ VectorOfKeyValuePairs* kv_pairs);
// The same as SplitString, but use a substring delimiter instead of a char.
BASE_EXPORT void SplitStringUsingSubstr(const string16& str,
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_result.h » ('j') | chrome/browser/omnibox/omnibox_field_trial.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698