| Index: mojo/public/cpp/bindings/sync_dispatcher.h
|
| diff --git a/mojo/public/cpp/bindings/sync_dispatcher.h b/mojo/public/cpp/bindings/sync_dispatcher.h
|
| index 695f4399cd5eadf5caf35625478c5cb5a51fba1f..9f825bf8a6ae83be748514539d8d2527fc360c59 100644
|
| --- a/mojo/public/cpp/bindings/sync_dispatcher.h
|
| +++ b/mojo/public/cpp/bindings/sync_dispatcher.h
|
| @@ -26,9 +26,9 @@ template<typename Interface> class SyncDispatcher {
|
| : message_pipe_(message_pipe.Pass()) {
|
| stub_.set_sink(sink);
|
|
|
| - filters_.Append(new internal::MessageHeaderValidator)
|
| - .Append(new typename Interface::RequestValidator_);
|
| - filters_.set_sink(&stub_);
|
| + filters_.Append<internal::MessageHeaderValidator>();
|
| + filters_.Append<typename Interface::RequestValidator_>();
|
| + filters_.SetSink(&stub_);
|
| }
|
|
|
| bool WaitAndDispatchOneMessage() {
|
|
|