summaryrefslogtreecommitdiff
path: root/chromium/ppapi/cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-11-23 15:05:51 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-11-23 15:31:48 +0000
commit9cb87fa7638e305ef35b04f54ba07ac4fa04adcb (patch)
tree2793d80883b7daab67258117755046d428f9978c /chromium/ppapi/cpp
parent98ff39cb35ef2bd32bb1af9565628a4a4b0979b2 (diff)
downloadqtwebengine-chromium-9cb87fa7638e305ef35b04f54ba07ac4fa04adcb.tar.gz
BASELINE: Update Chromium to 47.0.2526.71
Also adds a few missing spellcheck sources. Change-Id: I300864710316ff3cd3ad456dd7a3d048b45f57d5 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'chromium/ppapi/cpp')
-rw-r--r--chromium/ppapi/cpp/private/find_private.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/ppapi/cpp/private/find_private.cc b/chromium/ppapi/cpp/private/find_private.cc
index 2765ae02eb1..97a02bc1a78 100644
--- a/chromium/ppapi/cpp/private/find_private.cc
+++ b/chromium/ppapi/cpp/private/find_private.cc
@@ -26,6 +26,10 @@ PP_Bool StartFind(PP_Instance instance,
void* object = Instance::GetPerInstanceObject(instance, kPPPFindInterface);
if (!object)
return PP_FALSE;
+ if (!text || text[0] == '\0') {
+ PP_NOTREACHED();
+ return PP_FALSE;
+ }
bool return_value = static_cast<Find_Private*>(object)->StartFind(
text, PP_ToBool(case_sensitive));
return PP_FromBool(return_value);