diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-27 05:06:04 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-27 05:06:04 +0000 |
commit | d0870532614ec8fa68782a55a013d3da41a9175b (patch) | |
tree | a293500da5b10a4c2c54845f84c6e6265057d807 /base/task.cc | |
parent | c9c0d079c24a02f8f9b667f3cbf06d234a586625 (diff) | |
download | chromium_src-d0870532614ec8fa68782a55a013d3da41a9175b.zip chromium_src-d0870532614ec8fa68782a55a013d3da41a9175b.tar.gz chromium_src-d0870532614ec8fa68782a55a013d3da41a9175b.tar.bz2 |
1;2305;0cRevert 86971 - Move media library AutoTaskRunner to base and rename ScopedTaskRunner.
This is needed to avoid faux dependencies on media/ creeping in to remoting/ code, and creating linker issues.
BUG=
TEST=Everything works as before.
Review URL: http://codereview.chromium.org/7062013
TBR=wez@chromium.org
Review URL: http://codereview.chromium.org/7062042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/task.cc')
-rw-r--r-- | base/task.cc | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/base/task.cc b/base/task.cc index e4da547..d33f3e1 100644 --- a/base/task.cc +++ b/base/task.cc @@ -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. @@ -15,23 +15,3 @@ CancelableTask::CancelableTask() { CancelableTask::~CancelableTask() { } - -namespace base { - -ScopedTaskRunner::ScopedTaskRunner(Task* task) : task_(task) { -} - -ScopedTaskRunner::~ScopedTaskRunner() { - if (task_) { - task_->Run(); - delete task_; - } -} - -Task* ScopedTaskRunner::Release() { - Task* tmp = task_; - task_ = NULL; - return tmp; -} - -} // namespace base |