| Index: base/file_version_info.cc
|
| ===================================================================
|
| --- base/file_version_info.cc (revision 7212)
|
| +++ base/file_version_info.cc (working copy)
|
| @@ -40,9 +40,9 @@
|
|
|
| // static
|
| FileVersionInfo* FileVersionInfo::CreateFileVersionInfo(
|
| - const std::wstring& file_path) {
|
| + const FilePath& file_path) {
|
| DWORD dummy;
|
| - const wchar_t* path = file_path.c_str();
|
| + const wchar_t* path = file_path.value().c_str();
|
| DWORD length = ::GetFileVersionInfoSize(path, &dummy);
|
| if (length == 0)
|
| return NULL;
|
| @@ -71,6 +71,12 @@
|
| }
|
| }
|
|
|
| +FileVersionInfo* FileVersionInfo::CreateFileVersionInfo(
|
| + const std::wstring& file_path) {
|
| + FilePath file_path_fp = FilePath::FromWStringHack(file_path);
|
| + return CreateFileVersionInfo(file_path_fp);
|
| +}
|
| +
|
| std::wstring FileVersionInfo::company_name() {
|
| return GetStringValue(L"CompanyName");
|
| }
|
|
|