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

Unified Diff: content/renderer/render_thread_impl_browsertest.cc

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: erase Closure* Created 3 years, 9 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 | « content/renderer/categorized_worker_pool.cc ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl_browsertest.cc
diff --git a/content/renderer/render_thread_impl_browsertest.cc b/content/renderer/render_thread_impl_browsertest.cc
index c1562f8abe4e36cfcdeee2fe7160c7772da2535d..61e9a8768d8e04cd486c02bd7e2a145dc9142650 100644
--- a/content/renderer/render_thread_impl_browsertest.cc
+++ b/content/renderer/render_thread_impl_browsertest.cc
@@ -84,7 +84,7 @@ class TestTaskCounter : public base::SingleThreadTaskRunner {
// SingleThreadTaskRunner implementation.
bool PostDelayedTask(const tracked_objects::Location&,
- const base::Closure&,
+ base::Closure,
base::TimeDelta) override {
base::AutoLock auto_lock(lock_);
count_++;
@@ -92,7 +92,7 @@ class TestTaskCounter : public base::SingleThreadTaskRunner {
}
bool PostNonNestableDelayedTask(const tracked_objects::Location&,
- const base::Closure&,
+ base::Closure,
base::TimeDelta) override {
base::AutoLock auto_lock(lock_);
count_++;
« no previous file with comments | « content/renderer/categorized_worker_pool.cc ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698