| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_mac.h" | 5 #include "base/file_version_info_mac.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/basictypes.h" |
| 9 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 10 #include "base/logging.h" | |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 | 13 |
| 14 FileVersionInfoMac::FileVersionInfoMac(NSBundle *bundle) : bundle_(bundle) { | 14 FileVersionInfoMac::FileVersionInfoMac(NSBundle *bundle) : bundle_(bundle) { |
| 15 [bundle_ retain]; | 15 [bundle_ retain]; |
| 16 } | 16 } |
| 17 | 17 |
| 18 FileVersionInfoMac::~FileVersionInfoMac() { | 18 FileVersionInfoMac::~FileVersionInfoMac() { |
| 19 [bundle_ release]; | 19 [bundle_ release]; |
| 20 } | 20 } |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 } | 124 } |
| 125 return false; | 125 return false; |
| 126 } | 126 } |
| 127 | 127 |
| 128 std::wstring FileVersionInfoMac::GetStringValue(const wchar_t* name) { | 128 std::wstring FileVersionInfoMac::GetStringValue(const wchar_t* name) { |
| 129 std::wstring str; | 129 std::wstring str; |
| 130 if (GetValue(name, &str)) | 130 if (GetValue(name, &str)) |
| 131 return str; | 131 return str; |
| 132 return std::wstring(); | 132 return std::wstring(); |
| 133 } | 133 } |
| OLD | NEW |