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

Unified Diff: content/browser/presentation/presentation_service_impl.cc

Issue 2972933002: [Media Router] Move main frame check for SetDefaultPresentationUrls. (Closed)
Patch Set: Rebase Created 3 years, 5 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: content/browser/presentation/presentation_service_impl.cc
diff --git a/content/browser/presentation/presentation_service_impl.cc b/content/browser/presentation/presentation_service_impl.cc
index 4411641ba90ab029892a2b4ebdaa007e7d9106f4..0d458df8953f4c39d678c5a6001bb86a16f31e0e 100644
--- a/content/browser/presentation/presentation_service_impl.cc
+++ b/content/browser/presentation/presentation_service_impl.cc
@@ -298,7 +298,7 @@ bool PresentationServiceImpl::RunAndEraseReconnectPresentationMojoCallback(
void PresentationServiceImpl::SetDefaultPresentationUrls(
const std::vector<GURL>& presentation_urls) {
DVLOG(2) << "SetDefaultPresentationUrls";
- if (!controller_delegate_)
+ if (!controller_delegate_ || !is_main_frame_)
return;
if (default_presentation_urls_ == presentation_urls)

Powered by Google App Engine
This is Rietveld 408576698