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

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

Issue 962193002: Fix for 'Rotate clockwise/counter clockwise' should not present in context menu in crashed PDF page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fd5b495d10d637c0211d772f2cd5175a08e0940f..b4b75d3dded969128c5c886116f4f359913b7a82 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698