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" | |
8 | 10 |
9 bool FirstRun::ImportBookmarks(const FilePath& import_bookmarks_path) { | 11 bool FirstRun::ImportBookmarks(const FilePath& import_bookmarks_path) { |
10 // http://crbug.com/48880 | 12 // http://crbug.com/48880 |
11 return false; | 13 return false; |
12 } | 14 } |
13 | 15 |
14 // static | 16 // static |
15 bool FirstRun::IsOrganicFirstRun() { | 17 bool FirstRun::IsOrganicFirstRun() { |
16 // We treat all installs as organic. | 18 std::string brand = keystone_glue::BrandCode(); |
17 return true; | 19 return StartsWithASCII(brand, "GG", true) || |
20 StartsWithASCII(brand, "EU", true); | |
Miranda Callahan
2011/08/19 09:03:24
Unless we go to a model where we're actually getti
Avi (use Gerrit)
2011/08/19 12:18:48
The Mac already _has_ brand codes. Four of 'em, ac
| |
18 } | 21 } |
19 | 22 |
20 // static | 23 // static |
21 void FirstRun::PlatformSetup() { | 24 void FirstRun::PlatformSetup() { |
22 // Things that Windows does here (creating a desktop icon, for example) are | 25 // Things that Windows does here (creating a desktop icon, for example) are |
23 // not needed. | 26 // not needed. |
24 } | 27 } |
28 | |
29 // static | |
30 FilePath FirstRun::MasterPrefsPath() { | |
31 return keystone_glue::MasterPrefsPath(); | |
32 } | |
OLD | NEW |