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

Unified Diff: chromecast/browser/test/chromecast_browser_test_helper_default.cc

Issue 2453623003: Decouple MediaSession messages from WebContents (full patch) (Closed)
Patch Set: nit Created 4 years, 1 month 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
« no previous file with comments | « chromecast/browser/test/cast_media_blocker_test.cc ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/test/chromecast_browser_test_helper_default.cc
diff --git a/chromecast/browser/test/chromecast_browser_test_helper_default.cc b/chromecast/browser/test/chromecast_browser_test_helper_default.cc
index 8a50925444b7a05a8bbc9c06d16b52cbc59aa428..d80eeeacf6869e86951dddc1182d135dcecb3ea7 100644
--- a/chromecast/browser/test/chromecast_browser_test_helper_default.cc
+++ b/chromecast/browser/test/chromecast_browser_test_helper_default.cc
@@ -9,6 +9,7 @@
#include "chromecast/browser/cast_browser_process.h"
#include "chromecast/browser/cast_content_window.h"
#include "chromecast/browser/cast_media_blocker.h"
+#include "content/public/browser/media_session.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
@@ -27,7 +28,8 @@ class DefaultHelper : public ChromecastBrowserTestHelper {
web_contents_ = window_->CreateWebContents(
CastBrowserProcess::GetInstance()->browser_context());
window_->CreateWindowTree(web_contents_.get());
- blocker_.reset(new CastMediaBlocker(web_contents_.get()));
+ blocker_.reset(new CastMediaBlocker(
+ content::MediaSession::Get(web_contents_.get()), web_contents_.get()));
content::WaitForLoadStop(web_contents_.get());
content::TestNavigationObserver same_tab_observer(web_contents_.get(), 1);
« no previous file with comments | « chromecast/browser/test/cast_media_blocker_test.cc ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698