// 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/src/url/url_util.h" | |
namespace { | |
void InitGoogleUrl() { | |
url::Initialize(); | |
} | |
} // namespace | |
REGISTER_MODULE_INITIALIZER(GoogleUrlInit, { InitGoogleUrl(); }); |