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

Unified Diff: base/observer_list_threadsafe.h

Issue 2791243002: Rewrite base::Bind into base::BindOnce on trivial cases in base (Closed)
Patch Set: 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
Index: base/observer_list_threadsafe.h
diff --git a/base/observer_list_threadsafe.h b/base/observer_list_threadsafe.h
index afb1010b67c4f632c055e6afb8eef21c0addd04d..c1d543edd4586e4a60e56c1774431d35fb290e94 100644
--- a/base/observer_list_threadsafe.h
+++ b/base/observer_list_threadsafe.h
@@ -151,8 +151,8 @@ class ObserverListThreadSafe
ObserverListContext* context = entry.second.get();
context->task_runner->PostTask(
from_here,
- Bind(&ObserverListThreadSafe<ObserverType>::NotifyWrapper,
- this, context, method));
+ BindOnce(&ObserverListThreadSafe<ObserverType>::NotifyWrapper, this,
+ context, method));
}
}

Powered by Google App Engine
This is Rietveld 408576698