| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/common/extensions/dial_device_description_parser_struct_traits.
h" |
| 6 |
| 7 namespace mojo { |
| 8 |
| 9 // static |
| 10 bool StructTraits<extensions::mojom::DialDeviceDescriptionDataView, |
| 11 media_router::DialDeviceDescription>:: |
| 12 Read(extensions::mojom::DialDeviceDescriptionDataView data, |
| 13 media_router::DialDeviceDescription* out) { |
| 14 if (!data.ReadUniqueId(&out->unique_id)) |
| 15 return false; |
| 16 if (!data.ReadFriendlyName(&out->friendly_name)) |
| 17 return false; |
| 18 if (!data.ReadModelName(&out->model_name)) |
| 19 return false; |
| 20 if (!data.ReadDeviceType(&out->device_type)) |
| 21 return false; |
| 22 |
| 23 return true; |
| 24 } |
| 25 |
| 26 } // namespace mojo |
| OLD | NEW |