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

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

Issue 2082733002: Fix for PDF find-in-page bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 6819528357b5d6520c07f28bb1916ac008cd3d34..fd28344c35876258aac71171428f57be4db739f9 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1460,12 +1460,13 @@ bool PepperPluginInstanceImpl::StartFind(const base::string16& search_text,
PP_FromBool(case_sensitive)));
}
-void PepperPluginInstanceImpl::SelectFindResult(bool forward) {
+void PepperPluginInstanceImpl::SelectFindResult(bool forward, int identifier) {
// Keep a reference on the stack. See NOTE above.
scoped_refptr<PepperPluginInstanceImpl> ref(this);
- if (LoadFindInterface())
- plugin_find_interface_->SelectFindResult(pp_instance(),
- PP_FromBool(forward));
+ if (!LoadFindInterface())
+ return;
+ find_identifier_ = identifier;
+ plugin_find_interface_->SelectFindResult(pp_instance(), PP_FromBool(forward));
}
void PepperPluginInstanceImpl::StopFind() {
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | content/renderer/pepper/pepper_webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698