summaryrefslogtreecommitdiffstats
path: root/base/file_version_info_mac.h
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-20 18:40:42 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-20 18:40:42 +0000
commit7c1e303fcf556aa07816cc702d5ff06f0d0def12 (patch)
treee7d23fa80217a3b23b09a1d3f6199d3832a47f1b /base/file_version_info_mac.h
parent3baebc3b65f670293c01e9935c7d13770ca89c21 (diff)
downloadchromium_src-7c1e303fcf556aa07816cc702d5ff06f0d0def12.zip
chromium_src-7c1e303fcf556aa07816cc702d5ff06f0d0def12.tar.gz
chromium_src-7c1e303fcf556aa07816cc702d5ff06f0d0def12.tar.bz2
file_version_info was not finding Mac values correctly. Got it now looking in the appropriate bundle.
BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/5815001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_version_info_mac.h')
-rw-r--r--base/file_version_info_mac.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/base/file_version_info_mac.h b/base/file_version_info_mac.h
index d66c4e6..36cb538 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 GetWStringValue(CFStringRef name);
+
+ scoped_nsobject<NSBundle> bundle_;
DISALLOW_COPY_AND_ASSIGN(FileVersionInfoMac);
};