| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/common/chrome_paths_internal.h" | 5 #include "chrome/common/chrome_paths_internal.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // been loaded as it will have been in this case. The FilePath operations | 98 // been loaded as it will have been in this case. The FilePath operations |
| 99 // needed to compute the framework's path are also effectively free, so that | 99 // needed to compute the framework's path are also effectively free, so that |
| 100 // is the approach that is used here. NSBundle is also documented as being | 100 // is the approach that is used here. NSBundle is also documented as being |
| 101 // not thread-safe, and thread safety may be a concern here. | 101 // not thread-safe, and thread safety may be a concern here. |
| 102 | 102 |
| 103 // The framework bundle is at a known path and name from the browser .app's | 103 // The framework bundle is at a known path and name from the browser .app's |
| 104 // versioned directory. | 104 // versioned directory. |
| 105 return GetVersionedDirectory().Append(kFrameworkName); | 105 return GetVersionedDirectory().Append(kFrameworkName); |
| 106 } | 106 } |
| 107 | 107 |
| 108 bool GetLocalLibraryDirectory(FilePath* result) { |
| 109 return mac_util::GetLocalDirectory(NSLibraryDirectory, result); |
| 110 } |
| 111 |
| 108 } // namespace chrome | 112 } // namespace chrome |
| OLD | NEW |