Allow empty value param to CefSetCrashKeyValue (issue #1995)
This commit is contained in:
parent
aa398d8798
commit
9dd0ca2661
|
@ -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_
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue