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 "base/nix/xdg_util.h" | 5 #include "base/nix/xdg_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/environment.h" | 10 #include "base/environment.h" |
11 #include "base/file_util.h" | |
12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/third_party/xdg_user_dirs/xdg_user_dir_lookup.h" | 14 #include "base/third_party/xdg_user_dirs/xdg_user_dir_lookup.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 // The KDE session version environment variable used in KDE 4. | 18 // The KDE session version environment variable used in KDE 4. |
19 const char kKDE4SessionEnvVar[] = "KDE_SESSION_VERSION"; | 19 const char kKDE4SessionEnvVar[] = "KDE_SESSION_VERSION"; |
20 | 20 |
21 } // namespace | 21 } // namespace |
22 | 22 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 111 } |
112 return NULL; | 112 return NULL; |
113 } | 113 } |
114 | 114 |
115 const char* GetDesktopEnvironmentName(Environment* env) { | 115 const char* GetDesktopEnvironmentName(Environment* env) { |
116 return GetDesktopEnvironmentName(GetDesktopEnvironment(env)); | 116 return GetDesktopEnvironmentName(GetDesktopEnvironment(env)); |
117 } | 117 } |
118 | 118 |
119 } // namespace nix | 119 } // namespace nix |
120 } // namespace base | 120 } // namespace base |
OLD | NEW |