| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/common/media_router/mojo/media_router_struct_traits.h" | 5 #include "chrome/common/media_router/mojo/media_router_struct_traits.h" |
| 6 | 6 |
| 7 #include "chrome/common/media_router/media_source.h" | 7 #include "chrome/common/media_router/media_source.h" |
| 8 #include "net/interfaces/ip_address_struct_traits.h" | 8 #include "net/interfaces/ip_address_struct_traits.h" |
| 9 #include "url/mojo/url_gurl_struct_traits.h" | 9 #include "url/mojo/url_gurl_struct_traits.h" |
| 10 | 10 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 out->set_description(description); | 196 out->set_description(description); |
| 197 | 197 |
| 198 base::Optional<std::string> custom_controller_path; | 198 base::Optional<std::string> custom_controller_path; |
| 199 if (!data.ReadCustomControllerPath(&custom_controller_path)) | 199 if (!data.ReadCustomControllerPath(&custom_controller_path)) |
| 200 return false; | 200 return false; |
| 201 | 201 |
| 202 if (custom_controller_path) | 202 if (custom_controller_path) |
| 203 out->set_custom_controller_path(*custom_controller_path); | 203 out->set_custom_controller_path(*custom_controller_path); |
| 204 | 204 |
| 205 out->set_local(data.is_local()); | 205 out->set_local(data.is_local()); |
| 206 out->set_supports_media_route_controller( |
| 207 data.supports_media_route_controller()); |
| 206 out->set_for_display(data.for_display()); | 208 out->set_for_display(data.for_display()); |
| 207 out->set_incognito(data.is_incognito()); | 209 out->set_incognito(data.is_incognito()); |
| 208 out->set_offscreen_presentation(data.is_offscreen_presentation()); | 210 out->set_offscreen_presentation(data.is_offscreen_presentation()); |
| 209 | 211 |
| 210 return true; | 212 return true; |
| 211 } | 213 } |
| 212 | 214 |
| 213 } // namespace mojo | 215 } // namespace mojo |
| OLD | NEW |