Index: examples/recipes/window_manager/window_manager.cc |
diff --git a/examples/recipes/window_manager/window_manager.cc b/examples/recipes/window_manager/window_manager.cc |
index 17733ee5d22012b70b2663dfc1aeeacc07062c9f..852079467f893f0c9ab6f92ff941646f77770764 100644 |
--- a/examples/recipes/window_manager/window_manager.cc |
+++ b/examples/recipes/window_manager/window_manager.cc |
@@ -7,6 +7,7 @@ |
#include <algorithm> |
#include "examples/recipes/window_manager/constants.h" |
+#include "mojo/services/view_manager/public/cpp/view_manager.h" |
#include "mojo/services/view_manager/public/cpp/view_property.h" |
using mojo::View; |
@@ -41,7 +42,7 @@ WindowManager::~WindowManager() { |
} |
View* WindowManager::Create() { |
- View* view = View::Create(root_->view_manager()); |
+ View* view = root_->view_manager()->CreateView(); |
UpdateBounds(view); |
view->AddObserver(this); |
views_.insert(view); |