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 400fb1e5e560e806b8f41822a4801de88e8449e3..6ad16eb78ed80f2b8cb92a12f44075f26ba332ab 100644 |
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc |
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
@@ -1699,6 +1699,13 @@ bool PepperPluginInstanceImpl::IsPrintScalingDisabled() { |
return plugin_print_interface_->IsScalingDisabled(pp_instance()) == PP_TRUE; |
} |
+int PepperPluginInstanceImpl::GetNumCopies() { |
+ DCHECK(plugin_print_interface_); |
+ if (!plugin_print_interface_) |
+ return 1; |
+ return plugin_print_interface_->NumCopies(pp_instance()); |
+} |
+ |
int PepperPluginInstanceImpl::PrintBegin(const WebPrintParams& print_params) { |
// Keep a reference on the stack. See NOTE above. |
scoped_refptr<PepperPluginInstanceImpl> ref(this); |