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

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

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "third_party/mojo/src/mojo/public/cpp/environment/lib/default_logger.h" 5 #include "mojo/public/cpp/environment/lib/default_logger.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <stdlib.h> // For |abort()|. 8 #include <stdlib.h> // For |abort()|.
9 9
10 #include <algorithm> 10 #include <algorithm>
11 11
12 #include "third_party/mojo/src/mojo/public/c/environment/logger.h" 12 #include "mojo/public/c/environment/logger.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 15
16 namespace { 16 namespace {
17 17
18 MojoLogLevel g_minimum_log_level = MOJO_LOG_LEVEL_INFO; 18 MojoLogLevel g_minimum_log_level = MOJO_LOG_LEVEL_INFO;
19 19
20 const char* GetLogLevelString(MojoLogLevel log_level) { 20 const char* GetLogLevelString(MojoLogLevel log_level) {
21 if (log_level <= MOJO_LOG_LEVEL_VERBOSE - 3) 21 if (log_level <= MOJO_LOG_LEVEL_VERBOSE - 3)
22 return "VERBOSE4+"; 22 return "VERBOSE4+";
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 namespace internal { 69 namespace internal {
70 70
71 const MojoLogger kDefaultLogger = {LogMessage, 71 const MojoLogger kDefaultLogger = {LogMessage,
72 GetMinimumLogLevel, 72 GetMinimumLogLevel,
73 SetMinimumLogLevel}; 73 SetMinimumLogLevel};
74 74
75 } // namespace internal 75 } // namespace internal
76 76
77 } // namespace mojo 77 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/environment/lib/default_logger.h ('k') | mojo/public/cpp/environment/lib/default_task_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698