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

Unified Diff: mojo/common/data_pipe_drainer.cc

Issue 2623263005: Tag some of Mojo heap allocations for the heap profiler. (Closed)
Patch Set: Synced Created 3 years, 11 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/watcher_impl.cc ('k') | mojo/edk/js/drain_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/data_pipe_drainer.cc
diff --git a/mojo/common/data_pipe_drainer.cc b/mojo/common/data_pipe_drainer.cc
index 1133e1165b89015a15586c302bb8f42b69809fab..27bd893d8abe185107de105ade3e31a82b80eae6 100644
--- a/mojo/common/data_pipe_drainer.cc
+++ b/mojo/common/data_pipe_drainer.cc
@@ -15,7 +15,10 @@ namespace common {
DataPipeDrainer::DataPipeDrainer(Client* client,
mojo::ScopedDataPipeConsumerHandle source)
- : client_(client), source_(std::move(source)), weak_factory_(this) {
+ : client_(client),
+ source_(std::move(source)),
+ handle_watcher_(FROM_HERE),
+ weak_factory_(this) {
DCHECK(client_);
handle_watcher_.Start(
source_.get(), MOJO_HANDLE_SIGNAL_READABLE,
« no previous file with comments | « mojo/android/system/watcher_impl.cc ('k') | mojo/edk/js/drain_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698