Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: base/file_version_info.cc

Issue 118162: Reduce header dependencies in base/ (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « base/file_version_info.h ('k') | base/file_version_info_mac.mm » ('j') | base/system_monitor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698