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

Unified Diff: pdf/out_of_process_instance.cc

Issue 2808923003: Revert of Enable find-in-page across GuestViews. (Closed)
Patch Set: Fixed patch conflicts. Created 3 years, 8 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 | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/out_of_process_instance.cc
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
index fd69a5aadc3d3e216d04f3fd35f3c25c2ce5253e..7dd41e5f59bdfd1a0c488eaf8ab2f6b2b50dae0f 100644
--- a/pdf/out_of_process_instance.cc
+++ b/pdf/out_of_process_instance.cc
@@ -347,8 +347,9 @@ bool OutOfProcessInstance::Init(uint32_t argc,
}
}
- // Allow the plugin to handle find requests.
- SetPluginToHandleFindRequests();
+ // Only allow the plugin to handle find requests if it is full frame.
+ if (full_)
+ SetPluginToHandleFindRequests();
text_input_ = base::MakeUnique<pp::TextInput_Dev>(this);
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698