// googleurl requires that it is properly initialized before it can be | |
// used in a multi-threaded context. Invoking googleurl initialization | |
// from a module initializer makes sure these functions are called by | |
// InitGoogle() at startup. | |
#include "base/googleinit.h" | |
#include "third_party/googleurl/googleurl/src/url_util.h" | |
namespace { | |
void InitGoogleUrl() { | |
url_util::Initialize(); | |
} | |
} // namespace | |
REGISTER_MODULE_INITIALIZER(GoogleUrlInit, { InitGoogleUrl(); }); |