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

Side by Side Diff: mojo/public/cpp/environment/lib/logging_only_environment.cc

Issue 1997473005: Remove requirement that mojo::Environment be instantiated. (Closed) Base URL: https://github.com/domokit/mojo.git@work797_no_utility_tls
Patch Set: rebased Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is a minimal definition of |Environment| that includes only a logger. 5 // This is a minimal definition of |Environment| that includes only a logger.
6 // This is just enough to be able to use |MOJO_LOG()| and related macros in 6 // This is just enough to be able to use |MOJO_LOG()| and related macros in
7 // logging.h. 7 // logging.h.
8 8
9 #include "mojo/public/cpp/environment/environment.h" 9 #include "mojo/public/cpp/environment/environment.h"
10 10
11 #include "mojo/public/cpp/environment/lib/default_logger.h" 11 #include "mojo/public/cpp/environment/lib/default_logger.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 14
15 Environment::Environment() {}
16
17 Environment::Environment(const MojoAsyncWaiter* default_async_waiter,
18 const MojoLogger* default_logger) {}
19
20 Environment::~Environment() {}
21
22 // static 15 // static
23 const MojoLogger* Environment::GetDefaultLogger() { 16 const MojoLogger* Environment::GetDefaultLogger() {
24 return &internal::kDefaultLogger; 17 return &internal::kDefaultLogger;
25 } 18 }
26 19
27 } // namespace mojo 20 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698