1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20

content / browser / private_aggregation / private_aggregation_internals_mojom_traits.cc [blame]

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/private_aggregation/private_aggregation_internals_mojom_traits.h"

namespace mojo {

// static
bool StructTraits<
    private_aggregation_internals::mojom::AggregatableReportRequestIDDataView,
    content::AggregatableReportRequestStorageId>::
    Read(private_aggregation_internals::mojom::
             AggregatableReportRequestIDDataView data,
         content::AggregatableReportRequestStorageId* out) {
  *out = content::AggregatableReportRequestStorageId(data.value());
  return true;
}

}  // namespace mojo