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

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

Issue 2345053002: Revert of Add CastMediaBlocker and BrowserTest (Closed)
Patch Set: Created 4 years, 3 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: 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..f5aad5f660f31a2b745498d92444ba3d8713f411 100644
--- a/chromecast/browser/test/chromecast_browser_test_helper_default.cc
+++ b/chromecast/browser/test/chromecast_browser_test_helper_default.cc
@@ -8,7 +8,6 @@
#include "chromecast/browser/cast_browser_context.h"
#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/web_contents.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
@@ -27,7 +26,6 @@
web_contents_ = window_->CreateWebContents(
CastBrowserProcess::GetInstance()->browser_context());
window_->CreateWindowTree(web_contents_.get());
- blocker_.reset(new CastMediaBlocker(web_contents_.get()));
content::WaitForLoadStop(web_contents_.get());
content::TestNavigationObserver same_tab_observer(web_contents_.get(), 1);
@@ -40,14 +38,9 @@
return web_contents_.get();
}
- void BlockMediaLoading(bool block) override {
- blocker_->BlockMediaLoading(block);
- }
-
private:
std::unique_ptr<CastContentWindow> window_;
std::unique_ptr<content::WebContents> web_contents_;
- std::unique_ptr<CastMediaBlocker> blocker_;
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698