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

Unified Diff: base/bind_helpers.cc

Issue 23514018: Add Reset to ScopedClosureRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ignore_result Created 7 years, 4 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: base/bind_helpers.cc
diff --git a/base/bind_helpers.cc b/base/bind_helpers.cc
index f2fc3bb0daaed9697a899b2e80f5322e1a074fe9..f1fe46da47ac0bbb0d4de0bd0974f2eca3ecf9b5 100644
--- a/base/bind_helpers.cc
+++ b/base/bind_helpers.cc
@@ -11,19 +11,4 @@ namespace base {
void DoNothing() {
}
-ScopedClosureRunner::ScopedClosureRunner(const Closure& closure)
- : closure_(closure) {
-}
-
-ScopedClosureRunner::~ScopedClosureRunner() {
- if (!closure_.is_null())
- closure_.Run();
-}
-
-Closure ScopedClosureRunner::Release() {
- Closure result = closure_;
- closure_.Reset();
- return result;
-}
-
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698