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

Unified Diff: chrome/browser/chromeos/system/name_value_pairs_parser.h

Issue 8883004: Move GetNameValuePairsFromFile -> NameValuePairsParser, ERROR -> WARNING (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years 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 | chrome/browser/chromeos/system/name_value_pairs_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/system/name_value_pairs_parser.h
diff --git a/chrome/browser/chromeos/system/name_value_pairs_parser.h b/chrome/browser/chromeos/system/name_value_pairs_parser.h
index 2119d0413895d57865aa948af63001ea71e99ca1..faf81b8e9eeaf006d7a81366bad7de5df749cca1 100644
--- a/chrome/browser/chromeos/system/name_value_pairs_parser.h
+++ b/chrome/browser/chromeos/system/name_value_pairs_parser.h
@@ -12,6 +12,8 @@
#include "base/basictypes.h"
+class FilePath;
+
namespace chromeos {
namespace system {
@@ -33,6 +35,11 @@ class NameValuePairsParser {
bool GetSingleValueFromTool(int argc, const char* argv[],
const std::string& key);
+ // Parses name-value pairs from the file.
+ void GetNameValuePairsFromFile(const FilePath& file_path,
+ const std::string& eq,
+ const std::string& delim);
+
// This will parse strings with output in the format:
// <key><EQ><value><DELIM>[<key><EQ><value>][...]
// e.g. ParseNameValuePairs("key1=value1 key2=value2", "=", " ")
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/name_value_pairs_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698