Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6681)

Unified Diff: chrome/browser/media/router/media_router_dialog_controller.cc

Issue 1228863005: [MediaRouter] The minimal change to make everything build on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the include for MediaRouterDialogControllerImpl Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698