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

Side by Side Diff: chrome/common/chrome_paths_linux.cc

Issue 8463020: Make sure only the right processes can access the profile path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added user notification for network profiles. Created 8 years, 11 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_internal.h ('k') | chrome/common/chrome_paths_mac.mm » ('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) 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/common/chrome_paths_internal.h" 5 #include "chrome/common/chrome_paths_internal.h"
6 6
7 #include "base/environment.h" 7 #include "base/environment.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/nix/xdg_util.h" 11 #include "base/nix/xdg_util.h"
12 #include "content/public/common/content_switches.h"
12 13
13 namespace { 14 namespace {
14 15
15 const char kDotConfigDir[] = ".config"; 16 const char kDotConfigDir[] = ".config";
16 const char kDownloadsDir[] = "Downloads"; 17 const char kDownloadsDir[] = "Downloads";
17 const char kXdgConfigHomeEnvVar[] = "XDG_CONFIG_HOME"; 18 const char kXdgConfigHomeEnvVar[] = "XDG_CONFIG_HOME";
18 19
19 } // namespace 20 } // namespace
20 21
21 namespace chrome { 22 namespace chrome {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 106
106 return true; 107 return true;
107 } 108 }
108 109
109 bool GetUserDesktop(FilePath* result) { 110 bool GetUserDesktop(FilePath* result) {
110 scoped_ptr<base::Environment> env(base::Environment::Create()); 111 scoped_ptr<base::Environment> env(base::Environment::Create());
111 *result = base::nix::GetXDGUserDirectory(env.get(), "DESKTOP", "Desktop"); 112 *result = base::nix::GetXDGUserDirectory(env.get(), "DESKTOP", "Desktop");
112 return true; 113 return true;
113 } 114 }
114 115
116 bool ProcessNeedsProfileDir(const std::string& process_type) {
117 // For now we have no reason to forbid this on Linux as we don't
118 // have the roaming profile troubles there. Moreover the Linux breakpad needs
119 // profile dir access in all process if enabled on Linux.
120 return true;
121 }
122
115 } // namespace chrome 123 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths_internal.h ('k') | chrome/common/chrome_paths_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698