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 "base/logging.h" | 5 #include "base/logging.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <io.h> | 8 #include <io.h> |
9 #include <windows.h> | 9 #include <windows.h> |
10 typedef HANDLE FileHandle; | 10 typedef HANDLE FileHandle; |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 #if defined(OS_WIN) | 803 #if defined(OS_WIN) |
804 std::wstring GetLogFileFullPath() { | 804 std::wstring GetLogFileFullPath() { |
805 if (log_file_name) | 805 if (log_file_name) |
806 return *log_file_name; | 806 return *log_file_name; |
807 return std::wstring(); | 807 return std::wstring(); |
808 } | 808 } |
809 #endif | 809 #endif |
810 | 810 |
811 } // namespace logging | 811 } // namespace logging |
812 | 812 |
813 std::ostream& operator<<(std::ostream& out, const wchar_t* wstr) { | 813 std::ostream& std::operator<<(std::ostream& out, const wchar_t* wstr) { |
814 return out << base::WideToUTF8(std::wstring(wstr)); | 814 return out << base::WideToUTF8(std::wstring(wstr)); |
815 } | 815 } |
OLD | NEW |