OLD | NEW |
---|---|
(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 | |
OLD | NEW |