Chromium Code Reviews

Unified Diff: services/ui/view_manager/view_manager_app.cc

Issue 1949233002: Create a RegisterViewAssociate method in ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Moved launching/registering of view associates to launcher Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: services/ui/view_manager/view_manager_app.cc
diff --git a/services/ui/view_manager/view_manager_app.cc b/services/ui/view_manager/view_manager_app.cc
index 171d8bc17fbd29f906852dc9b6cc5630aef8fe34..230c70b6b87f1aeda688e7d32f1d43518fea5b8e 100644
--- a/services/ui/view_manager/view_manager_app.cc
+++ b/services/ui/view_manager/view_manager_app.cc
@@ -44,19 +44,6 @@ void ViewManagerApp::Initialize(mojo::ApplicationImpl* app_impl) {
// Create the registry.
registry_.reset(new ViewRegistry(compositor.Pass()));
-
- // Connect to associates.
- // TODO(jeffbrown): Consider making the launcher register associates
- // with the view manager or perhaps per view tree.
- std::vector<std::string> associate_urls = command_line->GetArgs();
- if (associate_urls.empty()) {
- // TODO(jeffbrown): Replace this hardcoded list.
- associate_urls.push_back("mojo:input_manager_service");
- }
- registry_->ConnectAssociates(
- app_impl_, associate_urls,
- base::Bind(&ViewManagerApp::OnAssociateConnectionError,
- base::Unretained(this)));
}
bool ViewManagerApp::ConfigureIncomingConnection(

Powered by Google App Engine