Remove a NOTREACHED() in PDFiumEngine::SelectFindResult().
It is expected that browser can still send this request even when there are no find results. BUG=498005 Change-Id: I234dc66739352ac35c2dfe072ac1f9cdee17bc2b Reviewed-on: https://chromium-review.googlesource.com/c/1374690 Reviewed-by: Paul Meyer <paulmeyer@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#617623}
This commit is contained in:
@ -2084,10 +2084,8 @@ void PDFiumEngine::AddFindResult(const PDFiumRange& result) {
|
||||
}
|
||||
|
||||
bool PDFiumEngine::SelectFindResult(bool forward) {
|
||||
if (find_results_.empty()) {
|
||||
NOTREACHED();
|
||||
if (find_results_.empty())
|
||||
return false;
|
||||
}
|
||||
|
||||
SelectionChangeInvalidator selection_invalidator(this);
|
||||
|
||||
|
Reference in New Issue
Block a user