Index: chrome/common/chrome_paths_win.cc |
diff --git a/chrome/common/chrome_paths_win.cc b/chrome/common/chrome_paths_win.cc |
index 7d009d00d7e45b6cff074088b765a1cc2ff6b6c3..8f9205b36e87527ce1b41105e7f0fc5cbbfbc272 100644 |
--- a/chrome/common/chrome_paths_win.cc |
+++ b/chrome/common/chrome_paths_win.cc |
@@ -10,6 +10,7 @@ |
#include <shlobj.h> |
#include <shobjidl.h> |
+#include "base/base_paths_win.h" |
#include "base/command_line.h" |
#include "base/file_path.h" |
#include "base/path_service.h" |
@@ -117,22 +118,6 @@ bool GetUserPicturesDirectory(FilePath* result) { |
return true; |
} |
-bool GetUserDesktop(FilePath* result) { |
- // We need to go compute the value. It would be nice to support paths |
- // with names longer than MAX_PATH, but the system functions don't seem |
- // to be designed for it either, with the exception of GetTempPath |
- // (but other things will surely break if the temp path is too long, |
- // so we don't bother handling it. |
- wchar_t system_buffer[MAX_PATH]; |
- system_buffer[0] = 0; |
- if (FAILED(SHGetFolderPath(NULL, CSIDL_DESKTOPDIRECTORY, NULL, |
- SHGFP_TYPE_CURRENT, system_buffer))) { |
- return false; |
- } |
- *result = FilePath(system_buffer); |
- return true; |
-} |
- |
bool ProcessNeedsProfileDir(const std::string& process_type) { |
// On windows we don't want subprocesses other than the browser process and |
// service processes to be able to use the profile directory because if it |