| Index: chrome/browser/mac/keystone_glue.mm | 
| diff --git a/chrome/browser/mac/keystone_glue.mm b/chrome/browser/mac/keystone_glue.mm | 
| index 247231207a856cf159b91a6c0d7480ded9ce7e92..2b344665e90f39fb6a87ec7deadf1247051d382a 100644 | 
| --- a/chrome/browser/mac/keystone_glue.mm | 
| +++ b/chrome/browser/mac/keystone_glue.mm | 
| @@ -9,6 +9,7 @@ | 
|  | 
| #include <vector> | 
|  | 
| +#include "base/file_util.h" | 
| #include "base/logging.h" | 
| #include "base/mac/mac_util.h" | 
| #include "base/mac/scoped_nsautorelease_pool.h" | 
| @@ -917,6 +918,20 @@ NSString* const kVersionKey = @"KSVersion"; | 
|  | 
| namespace keystone_glue { | 
|  | 
| +std::string BrandCode() { | 
| +  KeystoneGlue* keystoneGlue = [KeystoneGlue defaultKeystoneGlue]; | 
| +  NSString* brand_path = [keystoneGlue brandFilePath]; | 
| + | 
| +  if (![brand_path length]) | 
| +    return std::string(); | 
| + | 
| +  std::string brand_code; | 
| +  file_util::ReadFileToString(FilePath([brand_path fileSystemRepresentation]), | 
| +                              &brand_code); | 
| + | 
| +  return brand_code; | 
| +} | 
| + | 
| bool KeystoneEnabled() { | 
| return [KeystoneGlue defaultKeystoneGlue] != nil; | 
| } | 
|  |