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.
|
// 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);
|
void CefSetCrashKeyValue(const CefString& key, const CefString& value);
|
||||||
|
|
||||||
#endif // CEF_INCLUDE_CEF_CRASH_UTIL_H_
|
#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);
|
DCHECK(key);
|
||||||
if (!key)
|
if (!key)
|
||||||
return;
|
return;
|
||||||
// Verify param: value; type: string_byref_const
|
// Unverified params: value
|
||||||
DCHECK(value);
|
|
||||||
if (!value)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
CefSetCrashKeyValue(
|
CefSetCrashKeyValue(
|
||||||
|
|
|
@ -403,10 +403,7 @@ CEF_GLOBAL void CefSetCrashKeyValue(const CefString& key,
|
||||||
DCHECK(!key.empty());
|
DCHECK(!key.empty());
|
||||||
if (key.empty())
|
if (key.empty())
|
||||||
return;
|
return;
|
||||||
// Verify param: value; type: string_byref_const
|
// Unverified params: value
|
||||||
DCHECK(!value.empty());
|
|
||||||
if (value.empty())
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
cef_set_crash_key_value(
|
cef_set_crash_key_value(
|
||||||
|
|
Loading…
Reference in New Issue