OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/media/router/media_router_ui_service.h" |
| 6 |
| 7 #include "chrome/browser/media/router/media_router_feature.h" |
| 8 #include "chrome/browser/media/router/media_router_ui_service_factory.h" |
| 9 #include "chrome/browser/profiles/profile.h" |
| 10 |
| 11 namespace media_router { |
| 12 |
| 13 MediaRouterUIService::MediaRouterUIService(Profile* profile) |
| 14 : action_controller_(profile) { |
| 15 DCHECK(media_router::MediaRouterEnabled(profile)); |
| 16 } |
| 17 |
| 18 MediaRouterUIService::~MediaRouterUIService() {} |
| 19 |
| 20 // static |
| 21 MediaRouterUIService* MediaRouterUIService::Get(Profile* profile) { |
| 22 return MediaRouterUIServiceFactory::GetForBrowserContext(profile); |
| 23 } |
| 24 |
| 25 } // namespace media_router |
OLD | NEW |