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

Unified Diff: content/renderer/mus/render_widget_mus_connection.cc

Issue 2194893002: services/ui: Revert CLs that broke Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months 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 | « content/browser/renderer_host/render_process_host_impl.cc ('k') | mash/login/login.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mus/render_widget_mus_connection.cc
diff --git a/content/renderer/mus/render_widget_mus_connection.cc b/content/renderer/mus/render_widget_mus_connection.cc
index 727b34d797de1f07c7508399dc3a18b75abc4d61..ad7233cfd5673f3ae475c6131f583cfc05675604 100644
--- a/content/renderer/mus/render_widget_mus_connection.cc
+++ b/content/renderer/mus/render_widget_mus_connection.cc
@@ -8,9 +8,11 @@
#include "base/lazy_instance.h"
#include "base/macros.h"
+#include "content/public/common/mojo_shell_connection.h"
#include "content/renderer/mus/compositor_mus_connection.h"
#include "content/renderer/render_thread_impl.h"
#include "content/renderer/render_view_impl.h"
+#include "services/shell/public/cpp/connector.h"
#include "services/ui/public/cpp/context_provider.h"
#include "services/ui/public/cpp/output_surface.h"
#include "services/ui/public/interfaces/command_buffer.mojom.h"
@@ -44,7 +46,8 @@ std::unique_ptr<cc::OutputSurface>
RenderWidgetMusConnection::CreateOutputSurface() {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!window_surface_binding_);
- scoped_refptr<cc::ContextProvider> context_provider(new ui::ContextProvider);
+ scoped_refptr<cc::ContextProvider> context_provider(new ui::ContextProvider(
+ ChildThread::Get()->GetMojoShellConnection()->GetConnector()));
std::unique_ptr<cc::OutputSurface> surface(new ui::OutputSurface(
context_provider, ui::WindowSurface::Create(&window_surface_binding_)));
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | mash/login/login.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698