| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/first_run/first_run.h" | 5 #include "chrome/browser/first_run/first_run.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/string_util.h" |
| 9 #include "chrome/browser/mac/keystone_glue.h" |
| 10 #include "chrome/browser/mac/master_prefs.h" |
| 8 | 11 |
| 9 bool FirstRun::ImportBookmarks(const FilePath& import_bookmarks_path) { | 12 bool FirstRun::ImportBookmarks(const FilePath& import_bookmarks_path) { |
| 10 // http://crbug.com/48880 | 13 // http://crbug.com/48880 |
| 11 return false; | 14 return false; |
| 12 } | 15 } |
| 13 | 16 |
| 14 // static | 17 // static |
| 15 bool FirstRun::IsOrganicFirstRun() { | 18 bool FirstRun::IsOrganicFirstRun() { |
| 16 // We treat all installs as organic. | 19 std::string brand = keystone_glue::BrandCode(); |
| 17 return true; | 20 return brand.empty() || |
| 21 StartsWithASCII(brand, "GG", true) || |
| 22 StartsWithASCII(brand, "EU", true); |
| 18 } | 23 } |
| 19 | 24 |
| 20 // static | 25 // static |
| 21 void FirstRun::PlatformSetup() { | 26 void FirstRun::PlatformSetup() { |
| 22 // Things that Windows does here (creating a desktop icon, for example) are | 27 // Things that Windows does here (creating a desktop icon, for example) are |
| 23 // not needed. | 28 // not needed. |
| 24 } | 29 } |
| 30 |
| 31 // static |
| 32 FilePath FirstRun::MasterPrefsPath() { |
| 33 return master_prefs::MasterPrefsPath(); |
| 34 } |
| OLD | NEW |