OLD | NEW |
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/mac/master_prefs.h" | 5 #include "chrome/browser/mac/master_prefs.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/mac/foundation_util.h" | 8 #include "base/mac/foundation_util.h" |
9 #include "chrome/common/chrome_paths_internal.h" | 9 #include "chrome/common/chrome_paths_internal.h" |
10 #include "chrome/common/chrome_version_info.h" | 10 #include "chrome/common/chrome_version_info.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 #if defined(GOOGLE_CHROME_BUILD) | 14 #if defined(GOOGLE_CHROME_BUILD) |
15 // This should be NSApplicationSupportDirectory, but it has already been | 15 // This should be NSApplicationSupportDirectory, but it has already been |
16 // released using NSLibraryDirectory. | 16 // released using NSLibraryDirectory. |
17 const NSSearchPathDirectory kSearchPath = NSLibraryDirectory; | 17 const NSSearchPathDirectory kSearchPath = NSLibraryDirectory; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // /Library/Application Support/Chromium/Chromium Master Preferences | 54 // /Library/Application Support/Chromium/Chromium Master Preferences |
55 base::FilePath search_path; | 55 base::FilePath search_path; |
56 if (!base::mac::GetLocalDirectory(kSearchPath, &search_path)) | 56 if (!base::mac::GetLocalDirectory(kSearchPath, &search_path)) |
57 return base::FilePath(); | 57 return base::FilePath(); |
58 | 58 |
59 return search_path.Append(kMasterPreferencesDirectory) | 59 return search_path.Append(kMasterPreferencesDirectory) |
60 .Append(kMasterPreferencesFileName); | 60 .Append(kMasterPreferencesFileName); |
61 } | 61 } |
62 | 62 |
63 } // namespace master_prefs | 63 } // namespace master_prefs |
OLD | NEW |