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

Unified Diff: extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc

Issue 1201063002: Set up the infrastructure for Extension event metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaaaaase Created 5 years, 6 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
Index: extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc
diff --git a/extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc b/extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc
index 0d52ae5937d2f13e0d0c15bd79a608b540819067..3a7bcc1851d3b6d9426fbbbf260ca1b3e1202d76 100644
--- a/extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc
+++ b/extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc
@@ -131,8 +131,8 @@ void TCPSocketEventDispatcher::ReadCallback(
receive_info.data.assign(io_buffer->data(), io_buffer->data() + bytes_read);
scoped_ptr<base::ListValue> args =
sockets_tcp::OnReceive::Create(receive_info);
- scoped_ptr<Event> event(
- new Event(sockets_tcp::OnReceive::kEventName, args.Pass()));
+ scoped_ptr<Event> event(new Event(
+ events::UNKNOWN, sockets_tcp::OnReceive::kEventName, args.Pass()));
PostEvent(params, event.Pass());
// Post a task to delay the read until the socket is available, as
@@ -152,8 +152,8 @@ void TCPSocketEventDispatcher::ReadCallback(
receive_error_info.result_code = bytes_read;
scoped_ptr<base::ListValue> args =
sockets_tcp::OnReceiveError::Create(receive_error_info);
- scoped_ptr<Event> event(
- new Event(sockets_tcp::OnReceiveError::kEventName, args.Pass()));
+ scoped_ptr<Event> event(new Event(
+ events::UNKNOWN, sockets_tcp::OnReceiveError::kEventName, args.Pass()));
PostEvent(params, event.Pass());
// Since we got an error, the socket is now "paused" until the application

Powered by Google App Engine
This is Rietveld 408576698