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

Side by Side Diff: chrome/common/media_router/mojo/media_status_struct_traits.cc

Issue 2771413003: Move c/b/media/router/mojo/*.mojom to chrome/common/media_router/mojo/*.mojom (Closed)
Patch Set: Rebase Created 3 years, 8 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/media/router/mojo/media_status_struct_traits.h" 5 #include "chrome/common/media_router/mojo/media_status_struct_traits.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 // static 11 // static
12 bool StructTraits<media_router::mojom::MediaStatusDataView, 12 bool StructTraits<media_router::mojom::MediaStatusDataView,
13 media_router::MediaStatus>:: 13 media_router::MediaStatus>::
14 Read(media_router::mojom::MediaStatusDataView data, 14 Read(media_router::mojom::MediaStatusDataView data,
15 media_router::MediaStatus* out) { 15 media_router::MediaStatus* out) {
(...skipping 16 matching lines...) Expand all
32 if (!data.ReadDuration(&out->duration)) 32 if (!data.ReadDuration(&out->duration))
33 return false; 33 return false;
34 34
35 if (!data.ReadCurrentTime(&out->current_time)) 35 if (!data.ReadCurrentTime(&out->current_time))
36 return false; 36 return false;
37 37
38 return true; 38 return true;
39 } 39 }
40 40
41 } // namespace mojo 41 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698