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

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

Issue 7324017: Split SystemAccess into TimezoneSettings, StatisticsProvider, and SyslogsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 5 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 | « chrome/browser/chromeos/mock_system_access.cc ('k') | chrome/browser/chromeos/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/name_value_pairs_parser.h
diff --git a/chrome/browser/chromeos/name_value_pairs_parser.h b/chrome/browser/chromeos/name_value_pairs_parser.h
deleted file mode 100644
index ae8823b2f2081447c33bb444187004fcf4f09b2d..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/name_value_pairs_parser.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_NAME_VALUE_PAIRS_PARSER_H_
-#define CHROME_BROWSER_CHROMEOS_NAME_VALUE_PAIRS_PARSER_H_
-#pragma once
-
-#include <map>
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-
-namespace chromeos {
-
-// The parser is used to get machine info as name-value pairs. Defined
-// here to be accessable by tests.
-class NameValuePairsParser {
- public:
- typedef std::map<std::string, std::string> NameValueMap;
-
- // The obtained info will be written into machine_info.
- explicit NameValuePairsParser(NameValueMap* map);
-
- void AddNameValuePair(const std::string& key, const std::string& value);
-
- // Executes tool and inserts (key, <output>) into map_.
- bool GetSingleValueFromTool(int argc, const char* argv[],
- const std::string& key);
- // Executes tool, parses the output using ParseNameValuePairs,
- // and inserts the results into name_value_pairs_.
- bool ParseNameValuePairsFromTool(int argc, const char* argv[],
- const std::string& eq,
- const std::string& delim);
-
- private:
- // This will parse strings with output in the format:
- // <key><EQ><value><DELIM>[<key><EQ><value>][...]
- // e.g. ParseNameValuePairs("key1=value1 key2=value2", "=", " ")
- bool ParseNameValuePairs(const std::string& in_string,
- const std::string& eq,
- const std::string& delim);
-
- NameValueMap* map_;
-
- DISALLOW_COPY_AND_ASSIGN(NameValuePairsParser);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_NAME_VALUE_PAIRS_PARSER_H_
« no previous file with comments | « chrome/browser/chromeos/mock_system_access.cc ('k') | chrome/browser/chromeos/name_value_pairs_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698