| 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/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" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 return true; | 106 return true; |
| 107 } | 107 } |
| 108 | 108 |
| 109 bool GetUserDesktop(FilePath* result) { | 109 bool GetUserDesktop(FilePath* result) { |
| 110 scoped_ptr<base::Environment> env(base::Environment::Create()); | 110 scoped_ptr<base::Environment> env(base::Environment::Create()); |
| 111 *result = base::nix::GetXDGUserDirectory(env.get(), "DESKTOP", "Desktop"); | 111 *result = base::nix::GetXDGUserDirectory(env.get(), "DESKTOP", "Desktop"); |
| 112 return true; | 112 return true; |
| 113 } | 113 } |
| 114 | 114 |
| 115 bool ProcessNeedsProfileDir(const std::string& process_type) { |
| 116 // For now we have no reason to forbid this on Linux as we don't |
| 117 // have the roaming profile troubles there. Moreover the Linux breakpad needs |
| 118 // profile dir access in all process if enabled on Linux. |
| 119 return true; |
| 120 } |
| 121 |
| 115 } // namespace chrome | 122 } // namespace chrome |
| OLD | NEW |