mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
base::Bind now prevents the case with no arguments
This commit is contained in:
committed by
Kevin Sawicki
parent
411696ca19
commit
234e1bb811
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user