| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/diagnostics/diagnostics_writer.h" | 5 #include "chrome/browser/diagnostics/diagnostics_writer.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #if defined(OS_POSIX) | 9 #if defined(OS_POSIX) |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| 11 #include <unistd.h> | 11 #include <unistd.h> |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
| 17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/logging.h" | |
| 20 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
| 21 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
| 22 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
| 23 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
| 24 #include "ui/base/resource/resource_bundle.h" | |
| 25 #include "ui/base/ui_base_paths.h" | 23 #include "ui/base/ui_base_paths.h" |
| 26 | 24 |
| 27 namespace diagnostics { | 25 namespace diagnostics { |
| 28 | 26 |
| 29 // This is a minimalistic interface to wrap the platform console. | 27 // This is a minimalistic interface to wrap the platform console. |
| 30 class SimpleConsole { | 28 class SimpleConsole { |
| 31 public: | 29 public: |
| 32 enum Color { | 30 enum Color { |
| 33 DEFAULT, | 31 DEFAULT, |
| 34 RED, | 32 RED, |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 result.c_str(), | 279 result.c_str(), |
| 282 outcome_code, | 280 outcome_code, |
| 283 id.c_str(), | 281 id.c_str(), |
| 284 extra.c_str())); | 282 extra.c_str())); |
| 285 } | 283 } |
| 286 } | 284 } |
| 287 return true; | 285 return true; |
| 288 } | 286 } |
| 289 | 287 |
| 290 } // namespace diagnostics | 288 } // namespace diagnostics |
| OLD | NEW |