| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/name_value_pairs_parser.h" | 5 #include "chrome/browser/chromeos/system/name_value_pairs_parser.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/string_tokenizer.h" | 10 #include "base/string_tokenizer.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
| 13 | 13 |
| 14 namespace chromeos { // NOLINT | 14 namespace chromeos { // NOLINT |
| 15 namespace system { |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 const char kQuoteChars[] = "\""; | 19 const char kQuoteChars[] = "\""; |
| 19 | 20 |
| 20 } // namespace | 21 } // namespace |
| 21 | 22 |
| 22 NameValuePairsParser::NameValuePairsParser(NameValueMap* map) | 23 NameValuePairsParser::NameValuePairsParser(NameValueMap* map) |
| 23 : map_(map) { | 24 : map_(map) { |
| 24 } | 25 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 return false; | 94 return false; |
| 94 } | 95 } |
| 95 if (!ParseNameValuePairs(output_string, eq, delim)) { | 96 if (!ParseNameValuePairs(output_string, eq, delim)) { |
| 96 LOG(WARNING) << "Error parsing values while excuting: " | 97 LOG(WARNING) << "Error parsing values while excuting: " |
| 97 << command_line.command_line_string(); | 98 << command_line.command_line_string(); |
| 98 return false; | 99 return false; |
| 99 } | 100 } |
| 100 return true; | 101 return true; |
| 101 } | 102 } |
| 102 | 103 |
| 104 } // namespace system |
| 103 } // namespace chromeos | 105 } // namespace chromeos |
| OLD | NEW |