Chromium Code Reviews| Index: chrome/browser/mac/master_prefs.mm |
| diff --git a/chrome/browser/mac/master_prefs.mm b/chrome/browser/mac/master_prefs.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5bd25728a1f4ac3a6d66b668f336e1305bc7ef29 |
| --- /dev/null |
| +++ b/chrome/browser/mac/master_prefs.mm |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/mac/master_prefs.h" |
| + |
| +#include "base/mac/foundation_util.h" |
| + |
| +namespace { |
| + |
| +const char kGoogleDirectory[] = "Google"; |
| +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
|
| + |
| +} // namespace |
| + |
| +namespace master_prefs { |
| + |
| +FilePath MasterPrefsPath() { |
| + // There is only a system-level master preferences file. |
| + FilePath library_path; |
| + if (!base::mac::GetLocalDirectory(NSLibraryDirectory, &library_path)) |
| + return FilePath(); |
| + |
| + return library_path.Append(kGoogleDirectory) |
| + .Append(kMasterPreferencesFileName); |
| +} |
| + |
| +} // namespace master_prefs |