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

Unified Diff: mojo/ui/gl_view.cc

Issue 1983263002: Replace ApplicationImpl::CreateApplicationConnector() with a standalone helper function. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « mojo/ui/gl_renderer_apptest.cc ('k') | shell/shell_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/gl_view.cc
diff --git a/mojo/ui/gl_view.cc b/mojo/ui/gl_view.cc
index 4ab635d1d8d7168d42b0b7000221d3b44c2a21eb..e3c80f57dc0cce1009f0b381568758aed9ef8c48 100644
--- a/mojo/ui/gl_view.cc
+++ b/mojo/ui/gl_view.cc
@@ -5,6 +5,7 @@
#include "mojo/ui/gl_view.h"
#include "base/logging.h"
+#include "mojo/public/cpp/application/connect.h"
namespace mojo {
namespace ui {
@@ -15,7 +16,7 @@ GLView::GLView(mojo::ApplicationImpl* app_impl,
: BaseView(app_impl, view_owner_request.Pass(), label),
gl_renderer_(mojo::GLContext::CreateOffscreen(
ApplicationConnectorPtr::Create(
- app_impl->CreateApplicationConnector())
+ mojo::CreateApplicationConnector(app_impl->shell()))
.get())) {}
GLView::~GLView() {}
« no previous file with comments | « mojo/ui/gl_renderer_apptest.cc ('k') | shell/shell_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698