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

Side by Side Diff: chrome/common/media_router/dial_device_description_parser_struct_traits.cc

Issue 2745653008: [Media Router] Parse device description xml in utility process (Closed)
Patch Set: resolve code review comments from Mark Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(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/media_router/dial_device_description_parser_struct_trait s.h"
6
7 namespace mojo {
8
9 // static
10 bool StructTraits<chrome::mojom::DialDeviceDescriptionDataView,
11 media_router::DialDeviceDescription>::
12 Read(chrome::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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698