Chromium Code Reviews| Index: base/file_version_info_mac.h |
| diff --git a/base/file_version_info_mac.h b/base/file_version_info_mac.h |
| index d66c4e6343c7b316eb6263c628d87712c2353b7d..a62115cb7fdb01d8fff26dcea39b173bd6ef40a4 100644 |
| --- a/base/file_version_info_mac.h |
| +++ b/base/file_version_info_mac.h |
| @@ -8,9 +8,8 @@ |
| #include <string> |
| -#include "base/basictypes.h" |
| #include "base/file_version_info.h" |
| -#include "base/scoped_ptr.h" |
| +#include "base/scoped_nsobject.h" |
| #ifdef __OBJC__ |
| @class NSBundle; |
| @@ -25,7 +24,6 @@ class NSBundle; |
| class FileVersionInfoMac : public FileVersionInfo { |
| public: |
| explicit FileVersionInfoMac(NSBundle *bundle); |
| - ~FileVersionInfoMac(); |
| // Accessors to the different version properties. |
| // Returns an empty string if the property is not found. |
| @@ -47,14 +45,13 @@ class FileVersionInfoMac : public FileVersionInfo { |
| virtual bool is_official_build(); |
| private: |
| - // Lets you access other properties not covered above. |
| - bool GetValue(const wchar_t* name, std::wstring* value); |
| - // Similar to GetValue but returns a wstring (empty string if the property |
| - // does not exist). |
| - std::wstring GetStringValue(const wchar_t* name); |
| - NSBundle *bundle_; |
| + // Returns a wstring value for a property name. |
| + // Returns the empty string if the property does not exist. |
| + std::wstring GetStringValue(CFStringRef name); |
|
Mark Mentovai
2010/12/16 22:11:47
Can you name this GetWStringValue, since that’s wh
dmac
2010/12/16 22:20:42
Done.
|
| + |
| + scoped_nsobject<NSBundle> bundle_; |
| DISALLOW_COPY_AND_ASSIGN(FileVersionInfoMac); |
| }; |