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

Unified Diff: remoting/host/ipc_host_event_logger.cc

Issue 2881673002: Avoid heap allocations in IPAddress (Closed)
Patch Set: New constructor Created 3 years, 7 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 | « remoting/host/daemon_process.cc ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ipc_host_event_logger.cc
diff --git a/remoting/host/ipc_host_event_logger.cc b/remoting/host/ipc_host_event_logger.cc
index 3ebebc6fbcc2877c40f6b9857d53edac95bd2182..154ac607483ff89bd9e1fa00f488deaecc26ad15 100644
--- a/remoting/host/ipc_host_event_logger.cc
+++ b/remoting/host/ipc_host_event_logger.cc
@@ -60,9 +60,10 @@ void IpcHostEventLogger::OnClientRouteChange(
SerializedTransportRoute serialized_route;
serialized_route.type = route.type;
- serialized_route.remote_ip = route.remote_address.address().bytes();
+ serialized_route.remote_ip =
+ route.remote_address.address().CopyBytesToVector();
serialized_route.remote_port = route.remote_address.port();
- serialized_route.local_ip = route.local_address.address().bytes();
+ serialized_route.local_ip = route.local_address.address().CopyBytesToVector();
serialized_route.local_port = route.local_address.port();
daemon_channel_->Send(new ChromotingNetworkDaemonMsg_ClientRouteChange(
jid, channel_name, serialized_route));
« no previous file with comments | « remoting/host/daemon_process.cc ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698