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

Unified Diff: mojo/environment/environment.cc

Issue 339403003: Mojo: Make GetDefault{AsyncWaiter,Logger} static methods of Environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/environment/default_logger_impl.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/environment/environment.cc
diff --git a/mojo/environment/environment.cc b/mojo/environment/environment.cc
index 468f6a3ffc6d0cffa3e76f0dfbc335d12cada370..f8611139381a1440940a85821edbc73c5751112f 100644
--- a/mojo/environment/environment.cc
+++ b/mojo/environment/environment.cc
@@ -4,6 +4,9 @@
#include "mojo/public/cpp/environment/environment.h"
+#include "mojo/environment/default_async_waiter_impl.h"
+#include "mojo/environment/default_logger_impl.h"
+
namespace mojo {
// These methods are intentionally not implemented so that there is a link
@@ -12,8 +15,22 @@ namespace mojo {
Environment::Environment() {
}
+Environment::Environment(const MojoAsyncWaiter* default_async_waiter,
+ const MojoLogger* default_logger) {
+}
+
Environment::~Environment() {
}
#endif
+// static
+const MojoAsyncWaiter* Environment::GetDefaultAsyncWaiter() {
+ return internal::GetDefaultAsyncWaiterImpl();
+}
+
+// static
+const MojoLogger* Environment::GetDefaultLogger() {
+ return internal::GetDefaultLoggerImpl();
+}
+
} // namespace mojo
« no previous file with comments | « mojo/environment/default_logger_impl.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698