0

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:
Lei Zhang
2018-12-18 21:21:04 +00:00
committed by Commit Bot
parent 9ffcb1890f
commit 65bc813377

@ -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);