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

Side by Side Diff: ipc/ipc_logging.cc

Issue 5685007: Rename all methods accessing Singleton<T> as GetInstance(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_logging.h ('k') | net/base/registry_controlled_domain.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "ipc/ipc_logging.h" 5 #include "ipc/ipc_logging.h"
6 6
7 #ifdef IPC_MESSAGE_LOG_ENABLED 7 #ifdef IPC_MESSAGE_LOG_ENABLED
8 #define IPC_MESSAGE_MACROS_LOG_ENABLED 8 #define IPC_MESSAGE_MACROS_LOG_ENABLED
9 #endif 9 #endif
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #endif //defined(OS_WIN) 59 #endif //defined(OS_WIN)
60 if (logging_env_var_set) { 60 if (logging_env_var_set) {
61 enabled_ = true; 61 enabled_ = true;
62 enabled_on_stderr_ = true; 62 enabled_on_stderr_ = true;
63 } 63 }
64 } 64 }
65 65
66 Logging::~Logging() { 66 Logging::~Logging() {
67 } 67 }
68 68
69 Logging* Logging::current() { 69 Logging* Logging::GetInstance() {
70 return Singleton<Logging>::get(); 70 return Singleton<Logging>::get();
71 } 71 }
72 72
73 void Logging::SetConsumer(Consumer* consumer) { 73 void Logging::SetConsumer(Consumer* consumer) {
74 consumer_ = consumer; 74 consumer_ = consumer;
75 } 75 }
76 76
77 void Logging::Enable() { 77 void Logging::Enable() {
78 enabled_ = true; 78 enabled_ = true;
79 } 79 }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 data->receive = message.received_time(); 242 data->receive = message.received_time();
243 data->dispatch = Time::Now().ToInternalValue(); 243 data->dispatch = Time::Now().ToInternalValue();
244 data->params = params; 244 data->params = params;
245 data->message_name = message_name; 245 data->message_name = message_name;
246 } 246 }
247 } 247 }
248 248
249 } 249 }
250 250
251 #endif // IPC_MESSAGE_LOG_ENABLED 251 #endif // IPC_MESSAGE_LOG_ENABLED
OLDNEW
« no previous file with comments | « ipc/ipc_logging.h ('k') | net/base/registry_controlled_domain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698