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

Unified Diff: storage/browser/fileapi/task_runner_bound_observer_list.h

Issue 1696093002: Support smart pointers in base::DispatchToMethod (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« base/tuple.h ('K') | « base/tuple.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/task_runner_bound_observer_list.h
diff --git a/storage/browser/fileapi/task_runner_bound_observer_list.h b/storage/browser/fileapi/task_runner_bound_observer_list.h
index bbe91f777fe8ca8e5c989aaa1706f21efca9c3ff..2af1c94c1a54a392f23731ae3a8d5d0ae32a714c 100644
--- a/storage/browser/fileapi/task_runner_bound_observer_list.h
+++ b/storage/browser/fileapi/task_runner_bound_observer_list.h
@@ -17,7 +17,7 @@ namespace storage {
// A wrapper for dispatching method.
template <class T, class Method, class Params>
void NotifyWrapper(T obj, Method m, const Params& p) {
- base::DispatchToMethod(base::internal::UnwrapTraits<T>::Unwrap(obj), m, p);
+ base::DispatchToMethod(obj, m, p);
}
// An observer list helper to notify on a given task runner.
@@ -69,7 +69,7 @@ class TaskRunnerBoundObserverList {
for (typename ObserversListMap::const_iterator it = observers_.begin();
it != observers_.end(); ++it) {
if (!it->second.get() || it->second->RunsTasksOnCurrentThread()) {
- base::DispatchToMethod(UnwrapTraits::Unwrap(it->first), method, params);
+ base::DispatchToMethod(it->first, method, params);
continue;
}
it->second->PostTask(
@@ -80,8 +80,6 @@ class TaskRunnerBoundObserverList {
}
private:
- typedef base::internal::UnwrapTraits<ObserverStoreType> UnwrapTraits;
-
ObserversListMap observers_;
};
« base/tuple.h ('K') | « base/tuple.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698