Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / google_apis / gcm / base / socket_stream.cc
index edf723c..ffea696 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "base/bind.h"
 #include "base/callback.h"
+#include "base/profiler/scoped_tracker.h"
 #include "net/base/io_buffer.h"
 #include "net/socket/stream_socket.h"
 
@@ -162,6 +163,11 @@ SocketInputStream::State SocketInputStream::GetState() const {
 
 void SocketInputStream::RefreshCompletionCallback(
     const base::Closure& callback, int result) {
+  // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
+  tracked_objects::ScopedTracker tracking_profile(
+      FROM_HERE_WITH_EXPLICIT_FUNCTION(
+          "418183 DoReadCallback => SocketInputStream::RefreshCompletionC..."));
+
   // If an error occurred before the completion callback could complete, ignore
   // the result.
   if (GetState() == CLOSED)