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

Unified Diff: examples/ui/noodles/noodles_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 | « no previous file | mojo/public/cpp/application/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/noodles/noodles_view.cc
diff --git a/examples/ui/noodles/noodles_view.cc b/examples/ui/noodles/noodles_view.cc
index 161794ec9ad06c774aedfcc65ab7d02990a22232..6c790a64698a94f75d711a9d1ac2a50d339f289c 100644
--- a/examples/ui/noodles/noodles_view.cc
+++ b/examples/ui/noodles/noodles_view.cc
@@ -14,6 +14,7 @@
#include "base/message_loop/message_loop.h"
#include "examples/ui/noodles/frame.h"
#include "examples/ui/noodles/rasterizer.h"
+#include "mojo/public/cpp/application/connect.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkPath.h"
@@ -65,10 +66,11 @@ NoodlesView::NoodlesView(
rasterizer_task_runner_->PostTask(
FROM_HERE,
- base::Bind(&RasterizerDelegate::CreateRasterizer,
- base::Unretained(rasterizer_delegate_.get()),
- base::Passed(app_impl->CreateApplicationConnector()),
- base::Passed(TakeScene().PassInterfaceHandle())));
+ base::Bind(
+ &RasterizerDelegate::CreateRasterizer,
+ base::Unretained(rasterizer_delegate_.get()),
+ base::Passed(mojo::CreateApplicationConnector(app_impl->shell())),
+ base::Passed(TakeScene().PassInterfaceHandle())));
}
NoodlesView::~NoodlesView() {
« no previous file with comments | « no previous file | mojo/public/cpp/application/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698