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/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/nix/xdg_util.h" | 11 #include "base/nix/xdg_util.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "build/build_config.h" |
13 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
14 | 15 |
15 namespace chrome { | 16 namespace chrome { |
16 | 17 |
17 using base::nix::GetXDGDirectory; | 18 using base::nix::GetXDGDirectory; |
18 using base::nix::GetXDGUserDirectory; | 19 using base::nix::GetXDGUserDirectory; |
19 using base::nix::kDotConfigDir; | 20 using base::nix::kDotConfigDir; |
20 using base::nix::kXdgConfigHomeEnvVar; | 21 using base::nix::kXdgConfigHomeEnvVar; |
21 | 22 |
22 namespace { | 23 namespace { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 137 } |
137 | 138 |
138 bool ProcessNeedsProfileDir(const std::string& process_type) { | 139 bool ProcessNeedsProfileDir(const std::string& process_type) { |
139 // For now we have no reason to forbid this on Linux as we don't | 140 // For now we have no reason to forbid this on Linux as we don't |
140 // have the roaming profile troubles there. Moreover the Linux breakpad needs | 141 // have the roaming profile troubles there. Moreover the Linux breakpad needs |
141 // profile dir access in all process if enabled on Linux. | 142 // profile dir access in all process if enabled on Linux. |
142 return true; | 143 return true; |
143 } | 144 } |
144 | 145 |
145 } // namespace chrome | 146 } // namespace chrome |
OLD | NEW |