OLD | NEW |
1 // Copyright (c) 2012 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 #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/nix/xdg_util.h" | 10 #include "base/nix/xdg_util.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 if (*result != desktop) { | 114 if (*result != desktop) { |
115 return true; | 115 return true; |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 *result = home.Append(kPicturesDir); | 119 *result = home.Append(kPicturesDir); |
120 return true; | 120 return true; |
121 #endif | 121 #endif |
122 } | 122 } |
123 | 123 |
124 bool GetUserDesktop(FilePath* result) { | |
125 *result = GetXDGUserDirectory("DESKTOP", "Desktop"); | |
126 return true; | |
127 } | |
128 | |
129 bool ProcessNeedsProfileDir(const std::string& process_type) { | 124 bool ProcessNeedsProfileDir(const std::string& process_type) { |
130 // For now we have no reason to forbid this on Linux as we don't | 125 // For now we have no reason to forbid this on Linux as we don't |
131 // have the roaming profile troubles there. Moreover the Linux breakpad needs | 126 // have the roaming profile troubles there. Moreover the Linux breakpad needs |
132 // profile dir access in all process if enabled on Linux. | 127 // profile dir access in all process if enabled on Linux. |
133 return true; | 128 return true; |
134 } | 129 } |
135 | 130 |
136 } // namespace chrome | 131 } // namespace chrome |
OLD | NEW |