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

Unified Diff: mojo/services/view_manager/connection_manager.cc

Issue 699173003: Makes ViewManagerServiceImpl track a single root (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: comment Created 6 years, 1 month 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/view_manager/connection_manager.cc
diff --git a/mojo/services/view_manager/connection_manager.cc b/mojo/services/view_manager/connection_manager.cc
index 4b5b7c1147c064b0cc9eccab7e286ddcd877c8f4..f093dca06575cbe68ffecd4ec59c94c7dad2d0d2 100644
--- a/mojo/services/view_manager/connection_manager.cc
+++ b/mojo/services/view_manager/connection_manager.cc
@@ -174,7 +174,7 @@ const ViewManagerServiceImpl* ConnectionManager::GetConnectionWithRoot(
for (ConnectionMap::const_iterator i = connection_map_.begin();
i != connection_map_.end();
++i) {
- if (i->second->HasRoot(id))
+ if (i->second->IsRoot(id))
return i->second;
}
return NULL;
« no previous file with comments | « mojo/services/view_manager/access_policy_delegate.h ('k') | mojo/services/view_manager/default_access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698