Index: views/widget/widget_unittest.cc |
diff --git a/views/widget/widget_unittest.cc b/views/widget/widget_unittest.cc |
index a9f43dcb2b156e3a3ef2e32dcd0febdb9dd8e4da..202e0de7dd829eef4eefd27b599b7e29dbf827b7 100644 |
--- a/views/widget/widget_unittest.cc |
+++ b/views/widget/widget_unittest.cc |
@@ -157,12 +157,12 @@ bool WidgetHasMouseCapture(const Widget* widget) { |
TEST_F(WidgetTest, GetTopLevelWidget_Native) { |
// Create a hierarchy of native widgets. |
Widget* toplevel = CreateTopLevelPlatformWidget(); |
-#if defined(OS_WIN) |
- gfx::NativeView parent = toplevel->GetNativeView(); |
-#elif defined(TOOLKIT_USES_GTK) |
+#if defined(TOOLKIT_USES_GTK) |
NativeWidgetGtk* native_widget = |
static_cast<NativeWidgetGtk*>(toplevel->native_widget()); |
gfx::NativeView parent = native_widget->window_contents(); |
+#else |
+ gfx::NativeView parent = toplevel->GetNativeView(); |
#endif |
Widget* child = CreateChildPlatformWidget(parent); |