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 "base/file_version_info.h" |
| 6 |
5 #include <windows.h> | 7 #include <windows.h> |
6 | 8 |
7 #include "base/file_version_info.h" | 9 #include "base/file_path.h" |
8 | |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/path_service.h" | 11 #include "base/path_service.h" |
11 | 12 |
12 // This has to be last. | 13 // This has to be last. |
13 #include <strsafe.h> | 14 #include <strsafe.h> |
14 | 15 |
15 FileVersionInfo::FileVersionInfo(void* data, int language, int code_page) | 16 FileVersionInfo::FileVersionInfo(void* data, int language, int code_page) |
16 : language_(language), code_page_(code_page) { | 17 : language_(language), code_page_(code_page) { |
17 data_.reset((char*) data); | 18 data_.reset((char*) data); |
18 fixed_file_info_ = NULL; | 19 fixed_file_info_ = NULL; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 return false; | 177 return false; |
177 } | 178 } |
178 | 179 |
179 std::wstring FileVersionInfo::GetStringValue(const wchar_t* name) { | 180 std::wstring FileVersionInfo::GetStringValue(const wchar_t* name) { |
180 std::wstring str; | 181 std::wstring str; |
181 if (GetValue(name, &str)) | 182 if (GetValue(name, &str)) |
182 return str; | 183 return str; |
183 else | 184 else |
184 return L""; | 185 return L""; |
185 } | 186 } |
OLD | NEW |