Index: content/renderer/browser_plugin/browser_plugin_bindings.cc |
diff --git a/content/renderer/browser_plugin/browser_plugin_bindings.cc b/content/renderer/browser_plugin/browser_plugin_bindings.cc |
index 56b8e298b0bb04210b7a884554ec7cd54e55655b..c87e33b4ea28a54569427055cc610213f87382c9 100644 |
--- a/content/renderer/browser_plugin/browser_plugin_bindings.cc |
+++ b/content/renderer/browser_plugin/browser_plugin_bindings.cc |
@@ -317,7 +317,7 @@ class BrowserPluginBindingSetPermission : public BrowserPluginMethodBinding { |
public: |
BrowserPluginBindingSetPermission() |
: BrowserPluginMethodBinding( |
- browser_plugin::kMethodInternalSetPermission, 2) { |
+ browser_plugin::kMethodInternalSetPermission, 3) { |
} |
virtual bool Invoke(BrowserPluginBindings* bindings, |
@@ -325,7 +325,9 @@ class BrowserPluginBindingSetPermission : public BrowserPluginMethodBinding { |
NPVariant* result) OVERRIDE { |
int request_id = IntFromNPVariant(args[0]); |
bool allow = NPVARIANT_TO_BOOLEAN(args[1]); |
- bindings->instance()->OnEmbedderDecidedPermission(request_id, allow); |
+ std::string user_input = StringFromNPVariant(args[2]); |
+ bindings->instance()->OnEmbedderDecidedPermission( |
+ request_id, allow, user_input); |
return true; |
} |