OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/media/router/media_router_dialog_controller.h" |
| 6 |
| 7 #if defined(OS_ANDROID) |
| 8 #include "chrome/browser/media/android/router/media_router_dialog_controller_and
roid.h" |
| 9 #else |
| 10 #include "chrome/browser/ui/webui/media_router/media_router_dialog_controller_im
pl.h" |
| 11 #endif |
| 12 |
| 13 namespace media_router { |
| 14 |
| 15 // static |
| 16 MediaRouterDialogController* |
| 17 MediaRouterDialogController::GetOrCreateForWebContents( |
| 18 content::WebContents* contents) { |
| 19 #if defined(OS_ANDROID) |
| 20 return MediaRouterDialogControllerAndroid::GetOrCreateForWebContents( |
| 21 contents); |
| 22 #else |
| 23 return MediaRouterDialogControllerImpl::GetOrCreateForWebContents(contents); |
| 24 #endif |
| 25 } |
| 26 |
| 27 } // namespace media_router |
OLD | NEW |