Index: chrome/browser/media/router/media_router_dialog_controller.cc |
diff --git a/chrome/browser/media/router/media_router_dialog_controller.cc b/chrome/browser/media/router/media_router_dialog_controller.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d9f80cc75805b71c733e0376807c6da84a604de5 |
--- /dev/null |
+++ b/chrome/browser/media/router/media_router_dialog_controller.cc |
@@ -0,0 +1,27 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/media/router/media_router_dialog_controller.h" |
+ |
+#if defined(OS_ANDROID) |
+#include "chrome/browser/media/android/router/media_router_dialog_controller_android.h" |
+#else |
+#include "chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.h" |
+#endif |
+ |
+namespace media_router { |
+ |
+// static |
+MediaRouterDialogController* |
+MediaRouterDialogController::GetOrCreateForWebContents( |
+ content::WebContents* contents) { |
+#if defined(OS_ANDROID) |
+ return MediaRouterDialogControllerAndroid::GetOrCreateForWebContents( |
+ contents); |
+#else |
+ return MediaRouterDialogControllerImpl::GetOrCreateForWebContents(contents); |
+#endif |
+} |
+ |
+} // namespace media_router |