Index: base/mac/mac_util.h |
diff --git a/base/mac/mac_util.h b/base/mac/mac_util.h |
index dcb778025b08c17bdf83d7ad25b4a7859f0e5afa..fc4cb1d3643ec9905d5d14b9b57816007cf8eb4f 100644 |
--- a/base/mac/mac_util.h |
+++ b/base/mac/mac_util.h |
@@ -91,6 +91,12 @@ BASE_EXPORT bool SetFileBackupExclusion(const FilePath& file_path); |
// Sets the process name as displayed in Activity Monitor to process_name. |
BASE_EXPORT void SetProcessName(CFStringRef process_name); |
+// Returns the Hardware model name, without trailing numbers, if possible. |
+// See http://www.cocoadev.com/index.pl?MacintoshModels for an example list of |
+// models. If an error occurs trying to read the model, this simply returns |
+// "Unknown". |
+BASE_EXPORT std::string GetHardwareModelName(); |
+ |
// Converts a NSImage to a CGImageRef. Normally, the system frameworks can do |
// this fine, especially on 10.6. On 10.5, however, CGImage cannot handle |
// converting a PDF-backed NSImage into a CGImageRef. This function will |