Index: device/gamepad/gamepad_platform_data_fetcher_win.cc |
diff --git a/device/gamepad/gamepad_platform_data_fetcher_win.cc b/device/gamepad/gamepad_platform_data_fetcher_win.cc |
index 42404e006f4df8e408b4284683956769626dd984..2f2f7ac34b70f3f3ddfb2578bdf11a297e533da6 100644 |
--- a/device/gamepad/gamepad_platform_data_fetcher_win.cc |
+++ b/device/gamepad/gamepad_platform_data_fetcher_win.cc |
@@ -68,14 +68,10 @@ const UChar* XInputDllFileName() { |
// Xinput.h specifies it in build time. Approach here uses the same values |
// and it is resolving dll filename based on Windows version it is running on. |
if (base::win::GetVersion() >= base::win::VERSION_WIN8) { |
- // For Windows 8 and 10, XINPUT_DLL is xinput1_4.dll. |
+ // For Windows 8+, XINPUT_DLL is xinput1_4.dll. |
return FILE_PATH_LITERAL("xinput1_4.dll"); |
- } else if (base::win::GetVersion() >= base::win::VERSION_WIN7) { |
- return FILE_PATH_LITERAL("xinput9_1_0.dll"); |
- } else { |
- NOTREACHED(); |
- return nullptr; |
} |
+ return FILE_PATH_LITERAL("xinput9_1_0.dll"); |
} |
} // namespace |