Index: ui/ozone/demo/ozone_demo.cc |
diff --git a/ui/ozone/demo/ozone_demo.cc b/ui/ozone/demo/ozone_demo.cc |
index 99577406e9d8d2ec653bf760953bb1aaf7051706..c4c838018a08e1baae1e7983c8bbc5124ec62632 100644 |
--- a/ui/ozone/demo/ozone_demo.cc |
+++ b/ui/ozone/demo/ozone_demo.cc |
@@ -316,7 +316,7 @@ void WindowManager::OnDisplayConfigured(const gfx::Rect& bounds, bool success) { |
scoped_ptr<DemoWindow> window( |
new DemoWindow(this, &renderer_factory_, bounds)); |
window->Start(); |
- windows_.push_back(window.release()); |
+ windows_.push_back(window.Pass()); |
} else { |
LOG(ERROR) << "Failed to configure display at " << bounds.ToString(); |
} |