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

Unified Diff: trunk/src/mojo/services/public/cpp/view_manager/lib/view_manager_private.cc

Issue 286653003: Revert 270122 "Synchronizes View instances across clients." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/mojo/services/public/cpp/view_manager/lib/view_manager_private.cc
===================================================================
--- trunk/src/mojo/services/public/cpp/view_manager/lib/view_manager_private.cc (revision 270124)
+++ trunk/src/mojo/services/public/cpp/view_manager/lib/view_manager_private.cc (working copy)
@@ -13,7 +13,6 @@
ViewManagerPrivate::~ViewManagerPrivate() {}
void ViewManagerPrivate::AddNode(TransportNodeId node_id, ViewTreeNode* node) {
- DCHECK(!manager_->nodes_[node_id]);
manager_->nodes_[node_id] = node;
}
@@ -23,17 +22,6 @@
manager_->nodes_.erase(it);
}
-void ViewManagerPrivate::AddView(TransportViewId view_id, View* view) {
- DCHECK(!manager_->views_[view_id]);
- manager_->views_[view_id] = view;
-}
-
-void ViewManagerPrivate::RemoveView(TransportViewId view_id) {
- ViewManager::IdToViewMap::iterator it = manager_->views_.find(view_id);
- if (it != manager_->views_.end())
- manager_->views_.erase(it);
-}
-
} // namespace view_manager
} // namespace services
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698