Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: chrome/browser/first_run/first_run_mac.mm

Issue 7655056: Enable brand codes and master preferences on the Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copy/paste error Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/first_run/first_run_gtk.cc ('k') | chrome/browser/first_run/first_run_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « chrome/browser/first_run/first_run_gtk.cc ('k') | chrome/browser/first_run/first_run_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698