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

Side by Side Diff: chrome/common/chrome_paths_mac.mm

Issue 4062002: Dynamic policy refresh support for the Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/map/list/, nits. Created 10 years, 1 month 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/common/chrome_paths_internal.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths_internal.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698