This source file includes following definitions.
- InitializeMojo
- ShutdownMojo
#include "content/app/mojo/mojo_init.h"
#include "base/logging.h"
#include "mojo/embedder/embedder.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/service_manager/service_manager.h"
namespace content {
namespace {
mojo::Environment* environment = NULL;
}
void InitializeMojo() {
DCHECK(!environment);
environment = new mojo::Environment;
mojo::embedder::Init();
mojo::ServiceManager::GetInstance();
}
void ShutdownMojo() {
delete environment;
environment = NULL;
}
}