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

Unified Diff: third_party/mojo/src/mojo/public/cpp/environment/logging.h

Issue 1157843002: Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/mojo/src/mojo/public/cpp/environment/logging.h
diff --git a/third_party/mojo/src/mojo/public/cpp/environment/logging.h b/third_party/mojo/src/mojo/public/cpp/environment/logging.h
index d0fdeafb2475156533f6ecf03ebaf9cccd253635..bfc5c13f6c2e4b1e5dbc945abae9d2bd0750490d 100644
--- a/third_party/mojo/src/mojo/public/cpp/environment/logging.h
+++ b/third_party/mojo/src/mojo/public/cpp/environment/logging.h
@@ -19,7 +19,7 @@
#include "mojo/public/cpp/system/macros.h"
#define MOJO_LOG_STREAM(level) \
- ::mojo::internal::LogMessage(__FILE__, __LINE__, MOJO_LOG_LEVEL_##level) \
+ ::mojo::internal::LogMessage(MOJO_LOG_LEVEL_##level, __FILE__, __LINE__) \
.stream()
#define MOJO_LAZY_LOG_STREAM(level, condition) \
@@ -64,13 +64,15 @@ namespace internal {
class LogMessage {
public:
- LogMessage(const char* file, int line, MojoLogLevel log_level);
+ LogMessage(MojoLogLevel log_level, const char* file, int line);
~LogMessage();
std::ostream& stream() { return stream_; }
private:
const MojoLogLevel log_level_;
+ const char* const file_;
+ const int line_;
std::ostringstream stream_;
MOJO_DISALLOW_COPY_AND_ASSIGN(LogMessage);

Powered by Google App Engine
This is Rietveld 408576698