| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <glib.h> | 7 #include <glib.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/logging.h" | |
| 12 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 13 #include "chrome/third_party/xdg_user_dirs/xdg_user_dir_lookup.h" | 12 #include "chrome/third_party/xdg_user_dirs/xdg_user_dir_lookup.h" |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 FilePath GetHomeDir() { | 16 FilePath GetHomeDir() { |
| 18 const char *home_dir = getenv("HOME"); | 17 const char *home_dir = getenv("HOME"); |
| 19 | 18 |
| 20 if (home_dir && home_dir[0]) | 19 if (home_dir && home_dir[0]) |
| 21 return FilePath(home_dir); | 20 return FilePath(home_dir); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 96 |
| 98 return true; | 97 return true; |
| 99 } | 98 } |
| 100 | 99 |
| 101 bool GetUserDesktop(FilePath* result) { | 100 bool GetUserDesktop(FilePath* result) { |
| 102 *result = GetXDGUserDirectory("DESKTOP", "Desktop"); | 101 *result = GetXDGUserDirectory("DESKTOP", "Desktop"); |
| 103 return true; | 102 return true; |
| 104 } | 103 } |
| 105 | 104 |
| 106 } // namespace chrome | 105 } // namespace chrome |
| OLD | NEW |