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/diagnostics/diagnostics_main.h" | 5 #include "chrome/browser/diagnostics/diagnostics_main.h" |
6 | 6 |
7 #if defined(OS_POSIX) | 7 #if defined(OS_POSIX) |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 #endif | 10 #endif |
11 | 11 |
12 #include <iostream> | |
13 #include <string> | 12 #include <string> |
14 | 13 |
15 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
16 #include "base/command_line.h" | 15 #include "base/command_line.h" |
17 #include "base/i18n/icu_util.h" | 16 #include "base/i18n/icu_util.h" |
18 #include "base/logging.h" | 17 #include "base/logging.h" |
19 #include "base/stringprintf.h" | 18 #include "base/stringprintf.h" |
20 #include "base/sys_string_conversions.h" | 19 #include "base/sys_string_conversions.h" |
21 #include "base/time.h" | 20 #include "base/time.h" |
22 #include "base/utf_string_conversions.h" | 21 #include "base/utf_string_conversions.h" |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 // Windows. | 364 // Windows. |
366 #if defined(OS_WIN) | 365 #if defined(OS_WIN) |
367 // Block here so the user can see the results. | 366 // Block here so the user can see the results. |
368 writer.WriteInfoText(L"Press [enter] to continue\n"); | 367 writer.WriteInfoText(L"Press [enter] to continue\n"); |
369 std::wstring txt; | 368 std::wstring txt; |
370 console->Read(&txt); | 369 console->Read(&txt); |
371 #endif | 370 #endif |
372 delete console; | 371 delete console; |
373 return 0; | 372 return 0; |
374 } | 373 } |
OLD | NEW |