Index: ui/snapshot/snapshot_aura_unittest.cc |
diff --git a/ui/snapshot/snapshot_aura_unittest.cc b/ui/snapshot/snapshot_aura_unittest.cc |
index 4dc985fc24073e0fab65b22308baa2cc33e18a72..7be0d703fa1c2006a3b69d30f9b137db124db89f 100644 |
--- a/ui/snapshot/snapshot_aura_unittest.cc |
+++ b/ui/snapshot/snapshot_aura_unittest.cc |
@@ -97,12 +97,15 @@ class SnapshotAuraTest : public testing::Test { |
// The ContextFactory must exist before any Compositors are created. |
// Snapshot test tests real drawing and readback, so needs pixel output. |
bool enable_pixel_output = true; |
- ui::ContextFactory* context_factory = |
- ui::InitializeContextFactoryForTests(enable_pixel_output); |
+ ui::ContextFactory* context_factory = nullptr; |
+ ui::ContextFactoryPrivate* context_factory_private = nullptr; |
+ |
+ ui::InitializeContextFactoryForTests(enable_pixel_output, &context_factory, |
+ &context_factory_private); |
helper_.reset( |
new aura::test::AuraTestHelper(base::MessageLoopForUI::current())); |
- helper_->SetUp(context_factory); |
+ helper_->SetUp(context_factory, context_factory_private); |
new ::wm::DefaultActivationClient(helper_->root_window()); |
} |