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

Unified Diff: chrome/browser/extensions/api/tab_capture/offscreen_tab.cc

Issue 2760403003: Remove enable_media_router. (Closed)
Patch Set: . Created 3 years, 8 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
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/chrome_mojo_service_registration.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/tab_capture/offscreen_tab.cc
diff --git a/chrome/browser/extensions/api/tab_capture/offscreen_tab.cc b/chrome/browser/extensions/api/tab_capture/offscreen_tab.cc
index f9c546bac4e58f82f7716948d47f655b3a0fb3da..d5d0590448ba43503948bc78320eb61087c5e04c 100644
--- a/chrome/browser/extensions/api/tab_capture/offscreen_tab.cc
+++ b/chrome/browser/extensions/api/tab_capture/offscreen_tab.cc
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "chrome/browser/extensions/api/tab_capture/tab_capture_registry.h"
+#include "chrome/browser/media/router/receiver_presentation_service_delegate_impl.h" // nogncheck
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/web_contents_sizer.h"
#include "content/public/browser/keyboard_event_processing_result.h"
@@ -20,10 +21,6 @@
#include "extensions/browser/extension_host.h"
#include "extensions/browser/process_manager.h"
-#if defined(ENABLE_MEDIA_ROUTER)
-#include "chrome/browser/media/router/receiver_presentation_service_delegate_impl.h" // nogncheck
-#endif
-
using content::WebContents;
DEFINE_WEB_CONTENTS_USER_DATA_KEY(extensions::OffscreenTabsOwner);
@@ -122,7 +119,6 @@ void OffscreenTab::Start(const GURL& start_url,
// automatically unmuted, but will be captured into the MediaStream.
offscreen_tab_web_contents_->SetAudioMuted(true);
-#if defined(ENABLE_MEDIA_ROUTER)
if (!optional_presentation_id.empty()) {
DVLOG(1) << " Register with ReceiverPresentationServiceDelegateImpl, "
<< "[presentation_id]: " << optional_presentation_id;
@@ -139,7 +135,6 @@ void OffscreenTab::Start(const GURL& start_url,
render_view_host->UpdateWebkitPreferences(web_prefs);
}
}
-#endif // defined(ENABLE_MEDIA_ROUTER)
// Navigate to the initial URL.
content::NavigationController::LoadURLParams load_params(start_url_);
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/chrome_mojo_service_registration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698