base::Bind now prevents the case with no arguments
This commit is contained in:
parent
411696ca19
commit
234e1bb811
1 changed files with 3 additions and 0 deletions
|
@ -271,6 +271,9 @@ class ResolveProxyHelper {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Runs the callback in UI thread.
|
// Runs the callback in UI thread.
|
||||||
|
void RunCallbackInUI(const base::Callback<void()>& callback) {
|
||||||
|
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, callback);
|
||||||
|
}
|
||||||
template<typename ...T>
|
template<typename ...T>
|
||||||
void RunCallbackInUI(const base::Callback<void(T...)>& callback, T... result) {
|
void RunCallbackInUI(const base::Callback<void(T...)>& callback, T... result) {
|
||||||
BrowserThread::PostTask(
|
BrowserThread::PostTask(
|
||||||
|
|
Loading…
Reference in a new issue