Skip to content

Commit

Permalink
Move ipc/ to use new base::Pickle functionality
Browse files Browse the repository at this point in the history
This adjusts to how the new Pickle code is structured internally,
stopping use of a deprecated constructor so that it can be removed.

Bug: 330028190
Change-Id: Ia71114f42d07dd972c67772b7d33615b776e50ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5383055
Auto-Submit: Avi Drissman <[email protected]>
Reviewed-by: John Abd-El-Malek <[email protected]>
Commit-Queue: Avi Drissman <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1276492}
  • Loading branch information
Avi Drissman authored and Chromium LUCI CQ committed Mar 21, 2024
1 parent d719f93 commit 9e3d550
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ipc/ipc_message.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#include <stdint.h>

#include "base/atomic_sequence_num.h"
#include "base/containers/span.h"
#include "base/logging.h"
#include "base/pickle.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "ipc/ipc_message_attachment.h"
Expand Down Expand Up @@ -71,7 +73,8 @@ Message::Message(int32_t routing_id, uint32_t type, PriorityValue priority)
}

Message::Message(const char* data, size_t data_len)
: base::Pickle(data, data_len) {
: base::Pickle(base::Pickle::kUnownedData,
base::as_bytes(base::span(data, data_len))) {
Init();
}

Expand Down

0 comments on commit 9e3d550

Please sign in to comment.