base::Bind now prevents the case with no arguments

This commit is contained in:
Cheng Zhao 2017-01-24 17:06:24 +09:00 committed by Kevin Sawicki
parent 411696ca19
commit 234e1bb811

View file

@ -271,6 +271,9 @@ class ResolveProxyHelper {
};
// Runs the callback in UI thread.
void RunCallbackInUI(const base::Callback<void()>& callback) {
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, callback);
}
template<typename ...T>
void RunCallbackInUI(const base::Callback<void(T...)>& callback, T... result) {
BrowserThread::PostTask(