Allow empty value param to CefSetCrashKeyValue (issue #1995)

This commit is contained in:
Marshall Greenblatt 2017-02-08 12:35:21 -05:00
parent aa398d8798
commit 9dd0ca2661
3 changed files with 3 additions and 9 deletions

View File

@ -138,7 +138,7 @@ bool CefCrashReportingEnabled();
///
// Sets or clears a specific key-value pair from the crash metadata.
///
/*--cef()--*/
/*--cef(optional_param=value)--*/
void CefSetCrashKeyValue(const CefString& key, const CefString& value);
#endif // CEF_INCLUDE_CEF_CRASH_UTIL_H_

View File

@ -411,10 +411,7 @@ CEF_EXPORT void cef_set_crash_key_value(const cef_string_t* key,
DCHECK(key);
if (!key)
return;
// Verify param: value; type: string_byref_const
DCHECK(value);
if (!value)
return;
// Unverified params: value
// Execute
CefSetCrashKeyValue(

View File

@ -403,10 +403,7 @@ CEF_GLOBAL void CefSetCrashKeyValue(const CefString& key,
DCHECK(!key.empty());
if (key.empty())
return;
// Verify param: value; type: string_byref_const
DCHECK(!value.empty());
if (value.empty())
return;
// Unverified params: value
// Execute
cef_set_crash_key_value(