Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: mojo/public/cpp/bindings/sync_dispatcher.h

Issue 291583005: Change FilterChain::Append() to a template method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/lib/router.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « mojo/public/cpp/bindings/lib/router.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698