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

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

Issue 1949233002: Create a RegisterViewAssociate method in ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: tiny bit more cleanup 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
Index: services/ui/view_manager/view_registry.cc
diff --git a/services/ui/view_manager/view_registry.cc b/services/ui/view_manager/view_registry.cc
index aee3a466f8af2e4d34c76db26fa1c66fc8244d83..dbbab127114998ada983eceefe16a1ad9e3162e0 100644
--- a/services/ui/view_manager/view_registry.cc
+++ b/services/ui/view_manager/view_registry.cc
@@ -67,6 +67,16 @@ void ViewRegistry::ConnectAssociates(
connection_error_callback);
}
+// REGISTERING ASSOCIATES
+
+void ViewRegistry::RegisterViewAssociate(
+ mojo::ui::ViewInspector* view_inspector,
+ mojo::ui::ViewAssociatePtr view_associate) {
jeffbrown 2016/05/11 23:44:20 // TODO(mikejurka): Delete callback once registrat
mikejurka 2016/05/16 23:35:18 Done.
+ AssociateConnectionErrorCallback null_callback;
+ associate_table_.RegisterViewAssociate(view_inspector, view_associate.Pass(),
+ null_callback);
+}
+
// CREATE / DESTROY VIEWS
void ViewRegistry::CreateView(
« services/ui/view_manager/view_manager_impl.cc ('K') | « services/ui/view_manager/view_registry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698