OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <windows.h> | 5 #include <windows.h> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/debug_util.h" | 8 #include "base/debug_util.h" |
| 9 #include "logging.h" |
9 | 10 |
10 namespace { | 11 namespace { |
11 | 12 |
12 // Minimalist key reader. | 13 // Minimalist key reader. |
13 // Note: Does not use the CRT. | 14 // Note: Does not use the CRT. |
14 bool RegReadString(HKEY root, const wchar_t* subkey, | 15 bool RegReadString(HKEY root, const wchar_t* subkey, |
15 const wchar_t* value_name, wchar_t* buffer, int* len) { | 16 const wchar_t* value_name, wchar_t* buffer, int* len) { |
16 HKEY key = NULL; | 17 HKEY key = NULL; |
17 DWORD res = RegOpenKeyEx(root, subkey, 0, KEY_READ, &key); | 18 DWORD res = RegOpenKeyEx(root, subkey, 0, KEY_READ, &key); |
18 if (ERROR_SUCCESS != res || key == NULL) | 19 if (ERROR_SUCCESS != res || key == NULL) |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 } | 107 } |
107 | 108 |
108 const void *const *StackTrace::Addresses(size_t* count) { | 109 const void *const *StackTrace::Addresses(size_t* count) { |
109 *count = 0; | 110 *count = 0; |
110 return NULL; | 111 return NULL; |
111 } | 112 } |
112 | 113 |
113 void PrintBacktrace() { | 114 void PrintBacktrace() { |
114 NOTIMPLEMENTED(); | 115 NOTIMPLEMENTED(); |
115 } | 116 } |
OLD | NEW |