summaryrefslogtreecommitdiffstats
path: root/content/renderer/pepper/pepper_plugin_instance_impl.cc
diff options
context:
space:
mode:
authordeepak.m1 <deepak.m1@samsung.com>2015-03-01 20:21:24 -0800
committerCommit bot <commit-bot@chromium.org>2015-03-02 04:21:47 +0000
commit611754aea9d1c0ba5c7980fa267fd005dc249b85 (patch)
tree579479121170782622e636a671a01a4f372abe16 /content/renderer/pepper/pepper_plugin_instance_impl.cc
parent83355348cd9662c5031163270330be75a26ae492 (diff)
downloadchromium_src-611754aea9d1c0ba5c7980fa267fd005dc249b85.zip
chromium_src-611754aea9d1c0ba5c7980fa267fd005dc249b85.tar.gz
chromium_src-611754aea9d1c0ba5c7980fa267fd005dc249b85.tar.bz2
Fix for 'Rotate clockwise/counter clockwise' should not present in context menu in crashed PDF page.
When we are in the crashed PDf page then rotate does not have any use and it does nothing as only sad_plugin bitmap is painted. So rotate menu items should not present in the context menu. Changes done to check when plugin is crashed then rotation is not allowed. and rotate menu items are not added in context menu. BUG=462525 Review URL: https://codereview.chromium.org/962193002 Cr-Commit-Position: refs/heads/master@{#318647}
Diffstat (limited to 'content/renderer/pepper/pepper_plugin_instance_impl.cc')
-rw-r--r--content/renderer/pepper/pepper_plugin_instance_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index f4eac90..7cb8394 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1828,7 +1828,7 @@ bool PepperPluginInstanceImpl::GetPrintPresetOptionsFromDocument(
}
bool PepperPluginInstanceImpl::CanRotateView() {
- if (!LoadPdfInterface())
+ if (!LoadPdfInterface() || module()->is_crashed())
return false;
return true;