Move sandbox/ to use new base::Pickle functionality
This moves to using the new base::Pickle creation factories. Bug: 330028190 Change-Id: Ic567a4cce662356accc067b0b2d6b15c2e0b0d0b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5385996 Commit-Queue: Alex Gough <ajgo@chromium.org> Auto-Submit: Avi Drissman <avi@chromium.org> Reviewed-by: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1276575}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
61169d8499
commit
443563a092
@ -25,6 +25,7 @@
|
||||
#include "base/debug/dump_without_crashing.h"
|
||||
#include "base/lazy_instance.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/numerics/safe_conversions.h"
|
||||
#include "base/pickle.h"
|
||||
#include "base/posix/eintr_wrapper.h"
|
||||
#include "base/posix/global_descriptors.h"
|
||||
@ -206,7 +207,8 @@ void ProxyLocaltimeCallToBrowser(time_t input,
|
||||
if (r == -1)
|
||||
return;
|
||||
|
||||
base::Pickle reply(reinterpret_cast<char*>(reply_buf), r);
|
||||
base::Pickle reply = base::Pickle::WithData(
|
||||
base::span(reply_buf, base::checked_cast<size_t>(r)));
|
||||
base::PickleIterator iter(reply);
|
||||
if (!ReadTimeStruct(&iter, output, timezone_out, timezone_out_len)) {
|
||||
memset(output, 0, sizeof(struct tm));
|
||||
|
Reference in New Issue
Block a user