Index: examples/surfaces_app/child_impl.cc |
diff --git a/examples/surfaces_app/child_impl.cc b/examples/surfaces_app/child_impl.cc |
index de5279eaf77a14c6c11f5b418cd2a906670b3a63..7224c632f641d8ddb851e336866a3072d73d5425 100644 |
--- a/examples/surfaces_app/child_impl.cc |
+++ b/examples/surfaces_app/child_impl.cc |
@@ -33,7 +33,8 @@ static const uint32_t kLocalId = 1u; |
ChildImpl::ChildImpl(ApplicationConnection* surfaces_service_connection) |
: id_namespace_(0u) { |
surfaces_service_connection->ConnectToService(&surface_); |
- surface_.set_client(this); |
+ surface_->GetIdNamespace( |
+ base::Bind(&ChildImpl::SetIdNamespace, base::Unretained(this))); |
surface_.WaitForIncomingMethodCall(); // Wait for ID namespace to arrive. |
DCHECK_NE(0u, id_namespace_); |
} |
@@ -46,11 +47,6 @@ void ChildImpl::SetIdNamespace(uint32_t id_namespace) { |
id_namespace_ = id_namespace; |
} |
-void ChildImpl::ReturnResources( |
- Array<ReturnedResourcePtr> resources) { |
- DCHECK(!resources.size()); |
-} |
- |
void ChildImpl::ProduceFrame(ColorPtr color, |
SizePtr size_ptr, |
const ProduceCallback& callback) { |