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

Unified Diff: pdf/out_of_process_instance.cc

Issue 1365563003: Prevent guest views from issuing a search for empty text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: parens Created 5 years, 1 month 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/test/data/web_view/apitest/main.js ('k') | pdf/pdf_engine.h » ('j') | 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 12aad3ca8ab4865bfe9d05e038ef770274549780..cd71961ecb65e958bf9dce64a2c8579d5740b440 100644
--- a/pdf/out_of_process_instance.cc
+++ b/pdf/out_of_process_instance.cc
@@ -664,8 +664,8 @@ bool OutOfProcessInstance::IsPrintScalingDisabled() {
}
bool OutOfProcessInstance::StartFind(const std::string& text,
- bool case_sensitive) {
- engine_->StartFind(text.c_str(), case_sensitive);
+ bool case_sensitive) {
+ engine_->StartFind(text, case_sensitive);
return true;
}
« no previous file with comments | « extensions/test/data/web_view/apitest/main.js ('k') | pdf/pdf_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698