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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix network_service_loader Created 6 years, 5 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: mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
diff --git a/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc b/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
index dbb5a5ccc62bb68499fbfe469d6a18c30bec868f..8aaec2f9181d375a7b5376eb10e3241373e83cf8 100644
--- a/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
+++ b/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
@@ -523,13 +523,13 @@ class SetVisibleTransaction : public ViewManagerTransaction {
DISALLOW_COPY_AND_ASSIGN(SetVisibleTransaction);
};
-ViewManagerClientImpl::ViewManagerClientImpl(ApplicationConnection* connection,
- ViewManagerDelegate* delegate)
+ViewManagerClientImpl::ViewManagerClientImpl(ViewManagerDelegate* delegate)
: connected_(false),
connection_id_(0),
next_id_(1),
delegate_(delegate),
- window_manager_delegate_(NULL) {}
+ window_manager_delegate_(NULL) {
+}
ViewManagerClientImpl::~ViewManagerClientImpl() {
while (!nodes_.empty()) {
@@ -877,15 +877,5 @@ void ViewManagerClientImpl::RemoveRoot(Node* root) {
roots_.erase(it);
}
-////////////////////////////////////////////////////////////////////////////////
-// ViewManager, public:
-
-// static
-void ViewManager::ConfigureIncomingConnection(
- ApplicationConnection* connection,
- ViewManagerDelegate* delegate) {
- connection->AddService<ViewManagerClientImpl>(delegate);
-}
-
} // namespace view_manager
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698