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

Unified Diff: mojo/edk/system/async_waiter.cc

Issue 1420533012: EDK: Make mojo::embedder::AsyncWait (etc.) take an std::function instead of a base::Callback. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « mojo/edk/system/async_waiter.h ('k') | mojo/edk/system/core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/async_waiter.cc
diff --git a/mojo/edk/system/async_waiter.cc b/mojo/edk/system/async_waiter.cc
index 4f539b9cfcfc14f6a257a4767929d7ac3754b00b..c97e9ff6e5aea7ba7a0ed7c46c50a40f14ba340e 100644
--- a/mojo/edk/system/async_waiter.cc
+++ b/mojo/edk/system/async_waiter.cc
@@ -14,7 +14,7 @@ AsyncWaiter::~AsyncWaiter() {
}
bool AsyncWaiter::Awake(MojoResult result, uintptr_t context) {
- callback_.Run(result);
+ callback_(result);
delete this;
return false;
}
« no previous file with comments | « mojo/edk/system/async_waiter.h ('k') | mojo/edk/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698