Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Unified Diff: chrome/test/base/view_event_test_base.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | chrome/test/base/view_event_test_platform_part.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/view_event_test_base.cc
diff --git a/chrome/test/base/view_event_test_base.cc b/chrome/test/base/view_event_test_base.cc
index 2f7858be8537954b6b5bf18870c84c7d38311dfe..16e9a03bc288ef9937121a24ebe05a837616b6bd 100644
--- a/chrome/test/base/view_event_test_base.cc
+++ b/chrome/test/base/view_event_test_base.cc
@@ -74,12 +74,17 @@ void ViewEventTestBase::SetUp() {
// The ContextFactory must exist before any Compositors are created.
bool enable_pixel_output = false;
- 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);
views_delegate_.set_context_factory(context_factory);
+ views_delegate_.set_context_factory_private(context_factory_private);
views_delegate_.set_use_desktop_native_widgets(true);
- platform_part_.reset(ViewEventTestPlatformPart::Create(context_factory));
+ platform_part_.reset(ViewEventTestPlatformPart::Create(
+ context_factory, context_factory_private));
gfx::NativeWindow context = platform_part_->GetContext();
window_ = views::Widget::CreateWindowWithContext(this, context);
window_->Show();
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | chrome/test/base/view_event_test_platform_part.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698