diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-26 21:07:34 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-26 21:07:34 +0000 |
commit | 351f8818397ff0098b90d793724b83994f4a0261 (patch) | |
tree | 54291eabfb32d840c1aa4f62382f14888a73550d /remoting | |
parent | 0e8aa5c66c29c0d8f1988105c5db774f22279010 (diff) | |
download | chromium_src-351f8818397ff0098b90d793724b83994f4a0261.zip chromium_src-351f8818397ff0098b90d793724b83994f4a0261.tar.gz chromium_src-351f8818397ff0098b90d793724b83994f4a0261.tar.bz2 |
[Chromoting] Remove CHECK() when posting a message to the plugin thread during shutdown. With the assumtions currently made in the code it is OK to loose tasks posted to the plugin thread when a plugin instance is being destroyed.
This is a version of the fix that is intended to be merged to m23. A better fix will be checked to trunk.
BUG=150783
Review URL: https://codereview.chromium.org/10987053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158884 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/base/auto_thread_task_runner.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/remoting/base/auto_thread_task_runner.cc b/remoting/base/auto_thread_task_runner.cc index 8d995a2..6d5f0b5 100644 --- a/remoting/base/auto_thread_task_runner.cc +++ b/remoting/base/auto_thread_task_runner.cc @@ -40,20 +40,14 @@ bool AutoThreadTaskRunner::PostDelayedTask( const tracked_objects::Location& from_here, const base::Closure& task, base::TimeDelta delay) { - // CHECK() makes sure that |task_runner_| is still running, - the assumption - // made by |AutoThreadTaskRunner| owners. - CHECK(task_runner_->PostDelayedTask(from_here, task, delay)); - return true; + return task_runner_->PostDelayedTask(from_here, task, delay); } bool AutoThreadTaskRunner::PostNonNestableDelayedTask( const tracked_objects::Location& from_here, const base::Closure& task, base::TimeDelta delay) { - // CHECK() makes sure that |task_runner_| is still running, - the assumption - // made by |AutoThreadTaskRunner| owners. - CHECK(task_runner_->PostNonNestableDelayedTask(from_here, task, delay)); - return true; + return task_runner_->PostNonNestableDelayedTask(from_here, task, delay); } bool AutoThreadTaskRunner::RunsTasksOnCurrentThread() const { |