Chromium Code Reviews| Index: base/debug/dump_without_crashing.cc | 
| diff --git a/base/debug/dump_without_crashing.cc b/base/debug/dump_without_crashing.cc | 
| index 4b338ca2930b69d110fd545176029aec75f9cd4a..d6d810457e6b820a4dd019a0770aeb4cbd976d2c 100644 | 
| --- a/base/debug/dump_without_crashing.cc | 
| +++ b/base/debug/dump_without_crashing.cc | 
| @@ -27,6 +27,9 @@ bool DumpWithoutCrashing() { | 
| } | 
| void SetDumpWithoutCrashingFunction(void (CDECL *function)()) { | 
| +#if !defined(COMPONENT_BUILD) | 
| 
 
Nico
2017/06/26 14:36:14
add comment why this only holds in static builds
 
Will Harris
2017/06/26 16:27:04
Done.
 
 | 
| + DCHECK(!dump_without_crashing_function_); | 
| +#endif | 
| dump_without_crashing_function_ = function; | 
| } |