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

Unified Diff: remoting/base/auto_thread_task_runner.cc

Issue 10987053: [Chromoting] Remove CHECK() when posting a message to the plugin thread during shutdown. With the a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Propagate true/false from the wrapping task runner up. Created 8 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/auto_thread_task_runner.cc
diff --git a/remoting/base/auto_thread_task_runner.cc b/remoting/base/auto_thread_task_runner.cc
index 8d995a22c1c97e06ff7dfc0ad8c366fb95288caf..6d5f0b57dc2582b0b3d8e2e5342824a7edd855bb 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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698