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

Unified Diff: chrome/browser/ui/webui/media_router/media_router_dialog_controller.h

Issue 1149893020: [Media Router] Implement MediaRouterAction + MediaRouterUI tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed pkasting's comments Created 5 years, 7 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/ui/webui/media_router/media_router_dialog_controller.h
diff --git a/chrome/browser/ui/webui/media_router/media_router_dialog_controller.h b/chrome/browser/ui/webui/media_router/media_router_dialog_controller.h
index 96b1fe0f4db89523be31df8a0a1b0865cbb00af7..2b707746701c2db26043d9d1f047645523422a9a 100644
--- a/chrome/browser/ui/webui/media_router/media_router_dialog_controller.h
+++ b/chrome/browser/ui/webui/media_router/media_router_dialog_controller.h
@@ -21,6 +21,12 @@ class MediaRouterDialogController
public:
~MediaRouterDialogController() override;
+ // Gets a reference to the MediaRouterDialogController associated with
+ // |web_contents|, creating one if it does not exist. Returned value
Peter Kasting 2015/06/04 07:13:03 Tiny nit: "Returned value" -> "The returned pointe
imcheng (use chromium acct) 2015/06/04 16:45:43 Done.
+ // guaranteed to be non-null.
+ static MediaRouterDialogController* GetOrCreateForWebContents(
+ content::WebContents* web_contents);
+
// Shows the media router dialog modal to the initiator WebContents.
// Creates the dialog if it did not exist prior to this call.
// If the dialog already exists, brings the dialog to the front.

Powered by Google App Engine
This is Rietveld 408576698