Index: chrome/browser/ui/webui/set_as_default_browser_ui_browsertest_win.cc |
diff --git a/chrome/browser/ui/webui/set_as_default_browser_ui_browsertest_win.cc b/chrome/browser/ui/webui/set_as_default_browser_ui_browsertest_win.cc |
index eef4638710b613649a18b4f1aa9cb38d5ea3daee..80e5953f533d111215e43b8ed0db2ab64f5d2c70 100644 |
--- a/chrome/browser/ui/webui/set_as_default_browser_ui_browsertest_win.cc |
+++ b/chrome/browser/ui/webui/set_as_default_browser_ui_browsertest_win.cc |
@@ -40,8 +40,8 @@ class SetAsDefaultBrowserUIBrowserTestWithFirstRun |
IN_PROC_BROWSER_TEST_F(SetAsDefaultBrowserUIBrowserTestWithFirstRun, Test) { |
// Windows 8 only test case. |
- if (base::win::GetVersion() <= base::win::VERSION_WIN7 || |
- base::win::GetVersion() >= base::win::VERSION_WIN10) { |
+ if (base::win::GetVersion() != base::win::VERSION_WIN8 && |
+ base::win::GetVersion() != base::win::VERSION_WIN8_1) { |
return; |
} |
ASSERT_FALSE(IsBrowserVisible(browser())); |