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

Unified Diff: components/plugins/renderer/plugin_placeholder.cc

Issue 981623003: Plugin Power Saver: Implement srcset syntax for posters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: components/plugins/renderer/plugin_placeholder.cc
diff --git a/components/plugins/renderer/plugin_placeholder.cc b/components/plugins/renderer/plugin_placeholder.cc
index fbdbc5069ab597626e4239d5b8ddb1a4eff1a2b6..46862656967e355bdc47c08e4a8408da04776544 100644
--- a/components/plugins/renderer/plugin_placeholder.cc
+++ b/components/plugins/renderer/plugin_placeholder.cc
@@ -22,6 +22,8 @@ PluginPlaceholder::PluginPlaceholder(content::RenderFrame* render_frame,
render_frame->GetWebkitPreferences(),
html_data,
placeholderDataUrl)) {
+ DCHECK(placeholderDataUrl.is_valid())
+ << "Blink requires the placeholder to have a valid URL.";
}
PluginPlaceholder::~PluginPlaceholder() {}

Powered by Google App Engine
This is Rietveld 408576698