Index: mojo/services/view_manager/root_node_manager.h |
diff --git a/mojo/services/view_manager/root_node_manager.h b/mojo/services/view_manager/root_node_manager.h |
index d0a4b2fa529b842c459c2c11a2702067367a1f6b..8266780eaabeee0aed6c53e4131ff8305c2120cb 100644 |
--- a/mojo/services/view_manager/root_node_manager.h |
+++ b/mojo/services/view_manager/root_node_manager.h |
@@ -120,7 +120,11 @@ class MOJO_VIEW_MANAGER_EXPORT RootNodeManager |
const std::string& url) const; |
// Returns the ViewManagerServiceImpl that has |id| as a root. |
- ViewManagerServiceImpl* GetConnectionWithRoot(const NodeId& id); |
+ ViewManagerServiceImpl* GetConnectionWithRoot(const NodeId& id) { |
+ return const_cast<ViewManagerServiceImpl*>( |
+ const_cast<const RootNodeManager*>(this)->GetConnectionWithRoot(id)); |
+ } |
+ const ViewManagerServiceImpl* GetConnectionWithRoot(const NodeId& id) const; |
void DispatchViewInputEventToWindowManager(const View* view, |
const ui::Event* event); |