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

Unified Diff: trunk/src/mojo/services/public/cpp/view_manager/lib/view_manager.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.cc
===================================================================
--- trunk/src/mojo/services/public/cpp/view_manager/lib/view_manager.cc (revision 270124)
+++ trunk/src/mojo/services/public/cpp/view_manager/lib/view_manager.cc (working copy)
@@ -6,7 +6,6 @@
#include "mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h"
#include "mojo/services/public/cpp/view_manager/lib/view_tree_node_private.h"
-#include "mojo/services/public/cpp/view_manager/view.h"
namespace mojo {
namespace services {
@@ -23,13 +22,6 @@
else
nodes_.erase(it);
}
- while (!views_.empty()) {
- IdToViewMap::iterator it = views_.begin();
- if (synchronizer_->OwnsView(it->second->id()))
- it->second->Destroy();
- else
- views_.erase(it);
- }
}
void ViewManager::Init() {
@@ -41,11 +33,6 @@
return it != nodes_.end() ? it->second : NULL;
}
-View* ViewManager::GetViewById(TransportViewId id) {
- IdToViewMap::const_iterator it = views_.find(id);
- return it != views_.end() ? it->second : NULL;
-}
-
} // namespace view_manager
} // namespace services
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698