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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 2140783002: services/ui: Detect when a video is playing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 5b174570e571abdc77a4842e00f10dab9ee9c2c6..7706d1ba495e4347357c78a22a2777b4c6688e9d 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -2120,6 +2120,9 @@ void PepperPluginInstanceImpl::UpdateLayer(bool force_creation) {
} else {
container_->setWebLayer(web_layer_.get());
}
+ if (is_flash_plugin_) {
+ web_layer_->ccLayer()->SetMayContainVideo(true);
+ }
}
layer_bound_to_fullscreen_ = !!fullscreen_container_;

Powered by Google App Engine
This is Rietveld 408576698