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

Side by Side Diff: chrome/browser/mac/master_prefs.mm

Issue 7655056: Enable brand codes and master preferences on the Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new master prefs file 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/mac/master_prefs.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/mac/master_prefs.h"
6
7 #include "base/mac/foundation_util.h"
8
9 namespace {
10
11 const char kGoogleDirectory[] = "Google";
12 const char kMasterPreferencesFileName[] = "Google Chrome Master Preferences";
Mark Mentovai 2011/08/24 21:57:19 This is not a solution. Here’s my concern: downlo
13
14 } // namespace
15
16 namespace master_prefs {
17
18 FilePath MasterPrefsPath() {
19 // There is only a system-level master preferences file.
20 FilePath library_path;
21 if (!base::mac::GetLocalDirectory(NSLibraryDirectory, &library_path))
22 return FilePath();
23
24 return library_path.Append(kGoogleDirectory)
25 .Append(kMasterPreferencesFileName);
26 }
27
28 } // namespace master_prefs
OLDNEW
« no previous file with comments | « chrome/browser/mac/master_prefs.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698