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

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

Issue 10306009: Make sure only the main browser process and service proceses are allowed to create the profile dire… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add gpu to the list of allowed processes. Created 8 years, 7 months 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_linux.cc ('k') | chrome/common/chrome_paths_win.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <string> 10 #include <string>
11 11
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 return base::mac::GetLocalDirectory(NSLibraryDirectory, result); 192 return base::mac::GetLocalDirectory(NSLibraryDirectory, result);
193 } 193 }
194 194
195 NSBundle* OuterAppBundle() { 195 NSBundle* OuterAppBundle() {
196 // Cache this. Foundation leaks it anyway, and this should be the only call 196 // Cache this. Foundation leaks it anyway, and this should be the only call
197 // to OuterAppBundleInternal(). 197 // to OuterAppBundleInternal().
198 static NSBundle* bundle = OuterAppBundleInternal(); 198 static NSBundle* bundle = OuterAppBundleInternal();
199 return bundle; 199 return bundle;
200 } 200 }
201 201
202 bool ProcessNeedsProfileDir(const std::string& process_type) {
203 // For now we have no reason to forbid this on other MacOS as we don't
204 // have the roaming profile troubles there.
205 return true;
206 }
207
202 } // namespace chrome 208 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths_linux.cc ('k') | chrome/common/chrome_paths_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698