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

Unified Diff: chrome/browser/ui/ash/system_tray_tray_cast_browsertest_media_router_chromeos.cc

Issue 2666733002: Revert of Convert MediaRouter mojom apis to intake url::Origin objects instead of strings (Closed)
Patch Set: Created 3 years, 11 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/ash/system_tray_tray_cast_browsertest_media_router_chromeos.cc
diff --git a/chrome/browser/ui/ash/system_tray_tray_cast_browsertest_media_router_chromeos.cc b/chrome/browser/ui/ash/system_tray_tray_cast_browsertest_media_router_chromeos.cc
index 0534c0c53c0619e54dfdf93cac7812e75ad89720..0184f44c720a58f1076e029516dc6f71cfbea553 100644
--- a/chrome/browser/ui/ash/system_tray_tray_cast_browsertest_media_router_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_tray_cast_browsertest_media_router_chromeos.cc
@@ -119,25 +119,23 @@
// The tray should be hidden when there are no sinks.
EXPECT_FALSE(test_api.IsTrayVisible());
- media_sinks_observer()->OnSinksUpdated(zero_sinks,
- std::vector<url::Origin>());
+ media_sinks_observer()->OnSinksUpdated(zero_sinks, std::vector<GURL>());
// Flush mojo messages from the chrome object to the ash object.
content::RunAllPendingInMessageLoop();
EXPECT_FALSE(test_api.IsTrayVisible());
EXPECT_FALSE(test_api.IsTraySelectViewVisible());
// The tray should be visible with any more than zero sinks.
- media_sinks_observer()->OnSinksUpdated(one_sink, std::vector<url::Origin>());
+ media_sinks_observer()->OnSinksUpdated(one_sink, std::vector<GURL>());
content::RunAllPendingInMessageLoop();
EXPECT_TRUE(test_api.IsTrayVisible());
- media_sinks_observer()->OnSinksUpdated(two_sinks, std::vector<url::Origin>());
+ media_sinks_observer()->OnSinksUpdated(two_sinks, std::vector<GURL>());
content::RunAllPendingInMessageLoop();
EXPECT_TRUE(test_api.IsTrayVisible());
EXPECT_TRUE(test_api.IsTraySelectViewVisible());
// And if all of the sinks go away, it should be hidden again.
- media_sinks_observer()->OnSinksUpdated(zero_sinks,
- std::vector<url::Origin>());
+ media_sinks_observer()->OnSinksUpdated(zero_sinks, std::vector<GURL>());
content::RunAllPendingInMessageLoop();
EXPECT_FALSE(test_api.IsTrayVisible());
EXPECT_FALSE(test_api.IsTraySelectViewVisible());
@@ -156,7 +154,7 @@
std::vector<media_router::MediaSink> sinks;
sinks.push_back(MakeSink("remote_sink", "name"));
sinks.push_back(MakeSink("local_sink", "name"));
- media_sinks_observer()->OnSinksUpdated(sinks, std::vector<url::Origin>());
+ media_sinks_observer()->OnSinksUpdated(sinks, std::vector<GURL>());
content::RunAllPendingInMessageLoop();
// Create route combinations. More details below.

Powered by Google App Engine
This is Rietveld 408576698