Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1715)

Unified Diff: mojo/public/cpp/environment/lib/environment.cc

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/environment/lib/default_logger.cc ('k') | mojo/public/cpp/environment/lib/logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/environment/lib/environment.cc
diff --git a/mojo/public/cpp/environment/lib/environment.cc b/mojo/public/cpp/environment/lib/environment.cc
deleted file mode 100644
index 45bb238b160e60071ac31da3f5e052243e276c13..0000000000000000000000000000000000000000
--- a/mojo/public/cpp/environment/lib/environment.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// 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/public/cpp/environment/environment.h"
-
-#include <assert.h>
-#include <mojo/environment/logger.h>
-
-#include "mojo/public/cpp/environment/lib/default_async_waiter.h"
-#include "mojo/public/cpp/environment/lib/default_logger.h"
-#include "mojo/public/cpp/utility/run_loop.h"
-
-namespace mojo {
-
-const MojoAsyncWaiter* g_default_async_waiter = &internal::kDefaultAsyncWaiter;
-const MojoLogger* g_default_logger = &internal::kDefaultLogger;
-
-// static
-const MojoAsyncWaiter* Environment::GetDefaultAsyncWaiter() {
- return g_default_async_waiter;
-}
-
-// static
-void Environment::SetDefaultAsyncWaiter(const MojoAsyncWaiter* async_waiter) {
- g_default_async_waiter =
- async_waiter ? async_waiter : &internal::kDefaultAsyncWaiter;
-}
-
-// static
-const MojoLogger* Environment::GetDefaultLogger() {
- return g_default_logger;
-}
-
-// static
-void Environment::SetDefaultLogger(const MojoLogger* logger) {
- g_default_logger = logger ? logger : &internal::kDefaultLogger;
-}
-
-// static
-void Environment::InstantiateDefaultRunLoop() {
- assert(!RunLoop::current());
- // Not leaked: accessible from |RunLoop::current()|.
- RunLoop* run_loop = new RunLoop();
- MOJO_ALLOW_UNUSED_LOCAL(run_loop);
- assert(run_loop == RunLoop::current());
-}
-
-// static
-void Environment::DestroyDefaultRunLoop() {
- assert(RunLoop::current());
- delete RunLoop::current();
- assert(!RunLoop::current());
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/public/cpp/environment/lib/default_logger.cc ('k') | mojo/public/cpp/environment/lib/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698