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

Unified Diff: services/dart/content_handler_app_service_connector.cc

Issue 2010283006: Almost done: ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work798-x-work797-x-work796_no_run_main_app
Patch Set: rebased 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 | « services/dart/content_handler_app_service_connector.h ('k') | services/dart/content_handler_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/dart/content_handler_app_service_connector.cc
diff --git a/services/dart/content_handler_app_service_connector.cc b/services/dart/content_handler_app_service_connector.cc
index f79c1226c658fe1282e91540a97adc44f3aa8c03..3844ef6ce93e1ecca3b0dd65161b6abc58a3f819 100644
--- a/services/dart/content_handler_app_service_connector.cc
+++ b/services/dart/content_handler_app_service_connector.cc
@@ -4,6 +4,7 @@
#include "services/dart/content_handler_app_service_connector.h"
+#include "base/bind.h"
#include "base/location.h"
#include "mojo/public/cpp/application/connect.h"
#include "mojo/public/cpp/bindings/interface_request.h"
@@ -18,16 +19,15 @@ template<typename Interface>
void ContentHandlerAppServiceConnector::Connect(
std::string application_name,
mojo::InterfaceRequest<Interface> interface_request) {
- mojo::ConnectToService(content_handler_app_->shell(), application_name,
- interface_request.Pass());
+ mojo::ConnectToService(shell_, application_name, interface_request.Pass());
}
ContentHandlerAppServiceConnector::ContentHandlerAppServiceConnector(
- mojo::ApplicationImpl* content_handler_app)
- : runner_(base::MessageLoop::current()->task_runner()),
- content_handler_app_(content_handler_app),
- weak_ptr_factory_(this) {
- CHECK(content_handler_app != nullptr);
+ mojo::Shell* shell)
+ : runner_(base::MessageLoop::current()->task_runner()),
+ shell_(shell),
+ weak_ptr_factory_(this) {
+ CHECK(shell != nullptr);
CHECK(runner_.get() != nullptr);
CHECK(runner_.get()->BelongsToCurrentThread());
}
« no previous file with comments | « services/dart/content_handler_app_service_connector.h ('k') | services/dart/content_handler_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698