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

Unified Diff: mojo/services/view_manager/ids.h

Issue 424533002: Cleans up usage of ViewManagerServiceImpl::roots_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: delete 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/view_manager/ids.h
diff --git a/mojo/services/view_manager/ids.h b/mojo/services/view_manager/ids.h
index 593497f231c867cc41d3bca6f13b1432e3b2bb02..6628baf002e6741f25bb6865d17c67a351177d08 100644
--- a/mojo/services/view_manager/ids.h
+++ b/mojo/services/view_manager/ids.h
@@ -12,8 +12,9 @@
namespace mojo {
namespace service {
-// Connection id reserved for the root.
-const ConnectionSpecificId kRootConnection = 0;
+// Connection id used to indicate no connection. That is, no
Ben Goodger (Google) 2014/07/26 16:49:10 Connection id is used to
sky 2014/07/26 20:46:23 Done.
+// ViewManagerServiceImpl ever gets this id.
+const ConnectionSpecificId kInvalidConnectionId = 0;
// TODO(sky): remove this, temporary while window manager API is in existing
// api.
@@ -77,13 +78,13 @@ inline Id ViewIdToTransportId(const ViewId& id) {
}
inline NodeId RootNodeId() {
- return NodeId(kRootConnection, 1);
+ return NodeId(kInvalidConnectionId, 1);
}
// Returns a NodeId that is reserved to indicate no node. That is, no node will
// ever be created with this id.
inline NodeId InvalidNodeId() {
- return NodeId(kRootConnection, 0);
+ return NodeId(kInvalidConnectionId, 0);
}
} // namespace service

Powered by Google App Engine
This is Rietveld 408576698