Index: media/base/callback.cc |
=================================================================== |
--- media/base/callback.cc (revision 86971) |
+++ media/base/callback.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -6,6 +6,12 @@ |
namespace media { |
+AutoTaskRunner::~AutoTaskRunner() { |
+ if (task_.get()) { |
+ task_->Run(); |
+ } |
+} |
+ |
AutoCallbackRunner::~AutoCallbackRunner() { |
if (callback_.get()) { |
callback_->Run(); |