| Index: ui/views/test/views_test_base.cc
|
| diff --git a/ui/views/test/views_test_base.cc b/ui/views/test/views_test_base.cc
|
| index ade40e8175efc275d4193f0fe0d159e4a8be7cb4..9e15b514b4fe0f0c0ca44304923cfb70ee44588b 100644
|
| --- a/ui/views/test/views_test_base.cc
|
| +++ b/ui/views/test/views_test_base.cc
|
| @@ -30,9 +30,11 @@ void ViewsTestBase::SetUp() {
|
| if (!views_delegate_.get())
|
| views_delegate_.reset(new TestViewsDelegate());
|
| // The ContextFactory must exist before any Compositors are created.
|
| + ui::ContextFactory* context_factory = NULL;
|
| +#if !defined(OS_MACOSX)
|
| bool enable_pixel_output = false;
|
| - ui::ContextFactory* context_factory =
|
| - ui::InitializeContextFactoryForTests(enable_pixel_output);
|
| + context_factory = ui::InitializeContextFactoryForTests(enable_pixel_output);
|
| +#endif
|
|
|
| test_helper_.reset(ViewsTestHelper::Create(&message_loop_, context_factory));
|
| test_helper_->SetUp();
|
|
|