| Index: base/path_service_unittest.cc
|
| diff --git a/base/path_service_unittest.cc b/base/path_service_unittest.cc
|
| index 7a70a89c41a97b03abc75e6a56994ec0cbf00da8..a345262730ca5f985e99eeb6638fc8844f6e3795 100644
|
| --- a/base/path_service_unittest.cc
|
| +++ b/base/path_service_unittest.cc
|
| @@ -15,10 +15,7 @@
|
| #include "testing/platform_test.h"
|
|
|
| #if defined(OS_WIN)
|
| -#include <userenv.h>
|
| #include "base/win/windows_version.h"
|
| -// userenv.dll is required for GetDefaultUserProfileDirectory().
|
| -#pragma comment(lib, "userenv.lib")
|
| #endif
|
|
|
| namespace {
|
| @@ -45,18 +42,7 @@ bool ReturnsValidPath(int dir_type) {
|
| check_path_exists = false;
|
| #endif
|
| #if defined(OS_WIN)
|
| - if (dir_type == base::DIR_DEFAULT_USER_QUICK_LAUNCH) {
|
| - // On Windows XP, the Quick Launch folder for the "Default User" doesn't
|
| - // exist by default. At least confirm that the path returned begins with the
|
| - // Default User's profile path.
|
| - if (base::win::GetVersion() < base::win::VERSION_VISTA) {
|
| - wchar_t default_profile_path[MAX_PATH];
|
| - DWORD size = arraysize(default_profile_path);
|
| - return (result &&
|
| - ::GetDefaultUserProfileDirectory(default_profile_path, &size) &&
|
| - StartsWith(path.value(), default_profile_path, false));
|
| - }
|
| - } else if (dir_type == base::DIR_TASKBAR_PINS) {
|
| + if (dir_type == base::DIR_TASKBAR_PINS) {
|
| // There is no pinned-to-taskbar shortcuts prior to Win7.
|
| if (base::win::GetVersion() < base::win::VERSION_WIN7)
|
| check_path_exists = false;
|
|
|