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" | 5 #include "base/file_version_info.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
| 9 #include "base/file_path.h" |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
11 | 12 |
12 FileVersionInfo::FileVersionInfo(NSBundle *bundle) : bundle_(bundle) { | 13 FileVersionInfo::FileVersionInfo(NSBundle *bundle) : bundle_(bundle) { |
13 [bundle_ retain]; | 14 [bundle_ retain]; |
14 } | 15 } |
15 | 16 |
16 FileVersionInfo::~FileVersionInfo() { | 17 FileVersionInfo::~FileVersionInfo() { |
17 [bundle_ release]; | 18 [bundle_ release]; |
18 } | 19 } |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 } | 127 } |
127 return false; | 128 return false; |
128 } | 129 } |
129 | 130 |
130 std::wstring FileVersionInfo::GetStringValue(const wchar_t* name) { | 131 std::wstring FileVersionInfo::GetStringValue(const wchar_t* name) { |
131 std::wstring str; | 132 std::wstring str; |
132 if (GetValue(name, &str)) | 133 if (GetValue(name, &str)) |
133 return str; | 134 return str; |
134 return L""; | 135 return L""; |
135 } | 136 } |
OLD | NEW |