| Index: mojo/environment/default_run_loop_impl.cc
|
| diff --git a/mojo/environment/default_run_loop_impl.cc b/mojo/environment/default_run_loop_impl.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..07037b73430f1ce8619df0b2f4592166f488c411
|
| --- /dev/null
|
| +++ b/mojo/environment/default_run_loop_impl.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2014 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/default_run_loop_impl.h"
|
| +
|
| +#include "base/logging.h"
|
| +#include "base/message_loop/message_loop.h"
|
| +
|
| +namespace mojo {
|
| +namespace internal {
|
| +
|
| +void InstantiateDefaultRunLoopImpl() {
|
| + // Not leaked: accessible from |base::MessageLoop::current()|.
|
| + new base::MessageLoop();
|
| +}
|
| +
|
| +void DestroyDefaultRunLoopImpl() {
|
| + delete base::MessageLoop::current();
|
| +}
|
| +
|
| +} // namespace internal
|
| +} // namespace mojo
|
|
|