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

Unified Diff: media/base/filters.cc

Issue 9717021: Make Callback::Reset() return a copy to support use-cases where Run() ends up modifying |*this|. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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
Index: media/base/filters.cc
diff --git a/media/base/filters.cc b/media/base/filters.cc
index 620b5e58140a35f310900909a8aa0ee021f85d2b..aa1588b1ef225725d221243295dfe5155848d039 100644
--- a/media/base/filters.cc
+++ b/media/base/filters.cc
@@ -8,20 +8,6 @@
namespace media {
-void ResetAndRunCB(FilterStatusCB* cb, PipelineStatus status) {
- DCHECK(!cb->is_null());
- FilterStatusCB tmp_cb(*cb);
- cb->Reset();
- tmp_cb.Run(status);
-}
-
-void ResetAndRunCB(base::Closure* cb) {
- DCHECK(!cb->is_null());
- base::Closure tmp_cb(*cb);
- cb->Reset();
- tmp_cb.Run();
-}
-
Filter::Filter() : host_(NULL) {}
Filter::~Filter() {}

Powered by Google App Engine
This is Rietveld 408576698