| Index: mojo/environment/scoped_chromium_init.cc
|
| diff --git a/mojo/environment/scoped_chromium_init.cc b/mojo/environment/scoped_chromium_init.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9917d5490209a685b546ce5cd53eca94a281f7a5
|
| --- /dev/null
|
| +++ b/mojo/environment/scoped_chromium_init.cc
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "mojo/environment/scoped_chromium_init.h"
|
| +
|
| +#include "base/command_line.h"
|
| +#include "base/debug/stack_trace.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +ScopedChromiumInit::ScopedChromiumInit() {
|
| + base::CommandLine::Init(0, nullptr);
|
| +
|
| +#if !defined(NDEBUG) && !defined(OS_NACL)
|
| + base::debug::EnableInProcessStackDumping();
|
| +#endif
|
| +}
|
| +
|
| +ScopedChromiumInit::~ScopedChromiumInit() {}
|
| +
|
| +} // namespace mojo
|
|
|