| Index: chrome/browser/first_run/first_run_mac.mm
|
| diff --git a/chrome/browser/first_run/first_run_mac.mm b/chrome/browser/first_run/first_run_mac.mm
|
| index c866583503b05956bd9b39d8c09b97637ae06c0e..7ddea47c0a6bad7f8bcfb57b38eb5dac3d903c36 100644
|
| --- a/chrome/browser/first_run/first_run_mac.mm
|
| +++ b/chrome/browser/first_run/first_run_mac.mm
|
| @@ -5,6 +5,9 @@
|
| #include "chrome/browser/first_run/first_run.h"
|
|
|
| #include "base/file_path.h"
|
| +#include "base/string_util.h"
|
| +#include "chrome/browser/mac/keystone_glue.h"
|
| +#include "chrome/browser/mac/master_prefs.h"
|
|
|
| bool FirstRun::ImportBookmarks(const FilePath& import_bookmarks_path) {
|
| // http://crbug.com/48880
|
| @@ -13,8 +16,10 @@ bool FirstRun::ImportBookmarks(const FilePath& import_bookmarks_path) {
|
|
|
| // static
|
| bool FirstRun::IsOrganicFirstRun() {
|
| - // We treat all installs as organic.
|
| - return true;
|
| + std::string brand = keystone_glue::BrandCode();
|
| + return brand.empty() ||
|
| + StartsWithASCII(brand, "GG", true) ||
|
| + StartsWithASCII(brand, "EU", true);
|
| }
|
|
|
| // static
|
| @@ -22,3 +27,8 @@ void FirstRun::PlatformSetup() {
|
| // Things that Windows does here (creating a desktop icon, for example) are
|
| // not needed.
|
| }
|
| +
|
| +// static
|
| +FilePath FirstRun::MasterPrefsPath() {
|
| + return master_prefs::MasterPrefsPath();
|
| +}
|
|
|