Chromium Code Reviews| 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 StartsWithASCII(brand, "GG", true) || |
|
Mark Mentovai
2011/08/25 13:35:08
Caution! No brand code at all is also organic.
Avi (use Gerrit)
2011/08/25 15:24:52
Done.
| |
| 21 StartsWithASCII(brand, "EU", true); | |
| 18 } | 22 } |
| 19 | 23 |
| 20 // static | 24 // static |
| 21 void FirstRun::PlatformSetup() { | 25 void FirstRun::PlatformSetup() { |
| 22 // Things that Windows does here (creating a desktop icon, for example) are | 26 // Things that Windows does here (creating a desktop icon, for example) are |
| 23 // not needed. | 27 // not needed. |
| 24 } | 28 } |
| 29 | |
| 30 // static | |
| 31 FilePath FirstRun::MasterPrefsPath() { | |
| 32 return master_prefs::MasterPrefsPath(); | |
| 33 } | |
| OLD | NEW |