Index: views/widget/widget.h |
diff --git a/views/widget/widget.h b/views/widget/widget.h |
index 372b5a8147e04e211e3531d822c00132e8a6194c..9af648158be96a5c2b53a11bc3bd2c45ff0973d7 100644 |
--- a/views/widget/widget.h |
+++ b/views/widget/widget.h |
@@ -486,11 +486,9 @@ class VIEWS_API Widget : public internal::NativeWidgetDelegate, |
return non_client_view_ ? non_client_view_->client_view() : NULL; |
} |
-#if defined(UNIT_TEST) |
- static void set_compositor_factory(ui::Compositor*(*factory)()) { |
+ static void set_compositor_factory_for_testing(ui::Compositor*(*factory)()) { |
compositor_factory_ = factory; |
} |
-#endif |
static ui::Compositor* (*compositor_factory())() { |
return compositor_factory_; |
} |