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

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: expando 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"
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 }
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