Commit 611754ae authored by deepak.m1's avatar deepak.m1 Committed by Commit bot

Fix for 'Rotate clockwise/counter clockwise' should not present in context...

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}
parent 83355348
...@@ -1828,7 +1828,7 @@ bool PepperPluginInstanceImpl::GetPrintPresetOptionsFromDocument( ...@@ -1828,7 +1828,7 @@ bool PepperPluginInstanceImpl::GetPrintPresetOptionsFromDocument(
} }
bool PepperPluginInstanceImpl::CanRotateView() { bool PepperPluginInstanceImpl::CanRotateView() {
if (!LoadPdfInterface()) if (!LoadPdfInterface() || module()->is_crashed())
return false; return false;
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment