| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "components/mus/public/interfaces/gpu.mojom.h" | 7 #include "components/mus/public/interfaces/gpu.mojom.h" |
| 8 #include "content/browser/mojo/mojo_shell_client_host.h" | 8 #include "content/browser/mojo/mojo_shell_client_host.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 mojo::CapabilityFilterPtr CreateCapabilityFilterForRenderer() { | 12 mojo::shell::mojom::CapabilityFilterPtr CreateCapabilityFilterForRenderer() { |
| 13 // See https://goo.gl/gkBtCR for a description of what this is and what to | 13 // See https://goo.gl/gkBtCR for a description of what this is and what to |
| 14 // think about when changing it. | 14 // think about when changing it. |
| 15 mojo::CapabilityFilterPtr filter(mojo::CapabilityFilter::New()); | 15 mojo::shell::mojom::CapabilityFilterPtr filter( |
| 16 mojo::shell::mojom::CapabilityFilter::New()); |
| 16 mojo::Array<mojo::String> window_manager_interfaces; | 17 mojo::Array<mojo::String> window_manager_interfaces; |
| 17 window_manager_interfaces.push_back(mus::mojom::Gpu::Name_); | 18 window_manager_interfaces.push_back(mus::mojom::Gpu::Name_); |
| 18 filter->filter.insert("mojo:mus", std::move(window_manager_interfaces)); | 19 filter->filter.insert("mojo:mus", std::move(window_manager_interfaces)); |
| 19 return filter; | 20 return filter; |
| 20 } | 21 } |
| 21 | 22 |
| 22 } // namespace content | 23 } // namespace content |
| OLD | NEW |