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

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

Issue 669703003: Plugin Power Saver: Restrict Power Saver to cross-origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/plugin_module.cc
diff --git a/content/renderer/pepper/plugin_module.cc b/content/renderer/pepper/plugin_module.cc
index 9a467940d4174930f646d301e576558574485167..a2bef8358a69aaff7dbfeebcc080cc08955e89ef 100644
--- a/content/renderer/pepper/plugin_module.cc
+++ b/content/renderer/pepper/plugin_module.cc
@@ -540,9 +540,10 @@ bool PluginModule::SupportsInterface(const char* name) {
PepperPluginInstanceImpl* PluginModule::CreateInstance(
RenderFrameImpl* render_frame,
blink::WebPluginContainer* container,
- const GURL& plugin_url) {
+ const GURL& plugin_url,
+ const blink::WebURL& top_frame_url) {
PepperPluginInstanceImpl* instance = PepperPluginInstanceImpl::Create(
- render_frame, this, container, plugin_url);
+ render_frame, this, container, plugin_url, top_frame_url);
if (!instance) {
LOG(WARNING) << "Plugin doesn't support instance interface, failing.";
return NULL;

Powered by Google App Engine
This is Rietveld 408576698