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

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: lint Created 5 years, 3 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: pdf/out_of_process_instance.cc
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
index cfa11ba980be40c03c854e760bb54365d3a76219..d5f6e8118b784302685568326438bc1c6db2ef0b 100644
--- a/pdf/out_of_process_instance.cc
+++ b/pdf/out_of_process_instance.cc
@@ -656,8 +656,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;
}

Powered by Google App Engine
This is Rietveld 408576698