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

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

Issue 2627463003: Convert MediaRouter mojom apis to intake url::Origin objects instead of strings (Closed)
Patch Set: Add missing dependency for extensions_renderer_resources target Created 3 years, 10 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_sinks_observer.cc
diff --git a/chrome/browser/media/router/media_sinks_observer.cc b/chrome/browser/media/router/media_sinks_observer.cc
index 61bb1096fe6af603a836861a7ad2432fcac542d4..e7276fe59badbbcf15bdbd7c141fbc737e31185f 100644
--- a/chrome/browser/media/router/media_sinks_observer.cc
+++ b/chrome/browser/media/router/media_sinks_observer.cc
@@ -16,7 +16,7 @@ namespace media_router {
MediaSinksObserver::MediaSinksObserver(MediaRouter* router,
const MediaSource& source,
- const GURL& origin)
+ const url::Origin& origin)
: source_(source), origin_(origin), router_(router), initialized_(false) {
DCHECK(router_);
}
@@ -38,8 +38,9 @@ bool MediaSinksObserver::Init() {
return initialized_;
}
-void MediaSinksObserver::OnSinksUpdated(const std::vector<MediaSink>& sinks,
- const std::vector<GURL>& origins) {
+void MediaSinksObserver::OnSinksUpdated(
+ const std::vector<MediaSink>& sinks,
+ const std::vector<url::Origin>& origins) {
#if DCHECK_IS_ON()
base::AutoReset<bool> reset_in_on_sinks_updated(&in_on_sinks_updated_, true);
#endif
« no previous file with comments | « chrome/browser/media/router/media_sinks_observer.h ('k') | chrome/browser/media/router/media_sinks_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698