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

Unified Diff: mojo/environment/default_async_waiter_impl.cc

Issue 1358163006: Adds some code to help isolate where crash is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 5 years, 3 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
« no previous file with comments | « mojo/android/system/core_impl.cc ('k') | mojo/message_pump/handle_watcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/environment/default_async_waiter_impl.cc
diff --git a/mojo/environment/default_async_waiter_impl.cc b/mojo/environment/default_async_waiter_impl.cc
index 5178edda3028b6ed2fa0dc42ca01feb26af37421..c9f4445c14d11b4a617cbc9d1b912f3155457721 100644
--- a/mojo/environment/default_async_waiter_impl.cc
+++ b/mojo/environment/default_async_waiter_impl.cc
@@ -19,13 +19,14 @@ void OnHandleReady(common::HandleWatcher* watcher,
callback(closure, result);
}
-MojoAsyncWaitID AsyncWait(MojoHandle handle,
+MojoAsyncWaitID AsyncWait(int id,
+ MojoHandle handle,
MojoHandleSignals signals,
MojoDeadline deadline,
MojoAsyncWaitCallback callback,
void* closure) {
// This instance will be deleted when done or cancelled.
- common::HandleWatcher* watcher = new common::HandleWatcher();
+ common::HandleWatcher* watcher = new common::HandleWatcher(id);
watcher->Start(Handle(handle), signals, deadline,
base::Bind(&OnHandleReady, watcher, callback, closure));
return reinterpret_cast<MojoAsyncWaitID>(watcher);
« no previous file with comments | « mojo/android/system/core_impl.cc ('k') | mojo/message_pump/handle_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698