OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/system_logs/lsb_release_log_source.h" | 5 #include "chrome/browser/chromeos/system_logs/lsb_release_log_source.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/string_split.h" | |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/strings/string_split.h" |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 | 17 |
18 using content::BrowserThread; | 18 using content::BrowserThread; |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 const char kInvalidLogEntry[] = "<invalid characters in log entry>"; | 22 const char kInvalidLogEntry[] = "<invalid characters in log entry>"; |
23 const char kEmptyLogEntry[] = "<no value>"; | 23 const char kEmptyLogEntry[] = "<no value>"; |
24 | 24 |
25 typedef std::pair<std::string, std::string> KeyValuePair; | 25 typedef std::pair<std::string, std::string> KeyValuePair; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 if (value.empty()) | 74 if (value.empty()) |
75 (*response)[key] = kEmptyLogEntry; | 75 (*response)[key] = kEmptyLogEntry; |
76 else | 76 else |
77 (*response)[key] = value; | 77 (*response)[key] = value; |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 } // namespace chromeos | 81 } // namespace chromeos |
82 | 82 |
OLD | NEW |