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

Unified Diff: remoting/client/client_logger.cc

Issue 7262015: Conenct Chromoting plugin debug log to JS UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 5 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 | « remoting/client/client_logger.h ('k') | remoting/client/plugin/pepper_client_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/client_logger.cc
diff --git a/remoting/client/client_logger.cc b/remoting/client/client_logger.cc
deleted file mode 100644
index b970697ab838b49a1bbf2d7003187d933a443c6e..0000000000000000000000000000000000000000
--- a/remoting/client/client_logger.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "remoting/client/client_logger.h"
-
-#include <stdarg.h> // va_list
-
-#include "base/stringprintf.h"
-
-namespace remoting {
-
-ClientLogger::ClientLogger() {
-}
-
-ClientLogger::~ClientLogger() {
-}
-
-void ClientLogger::Log(logging::LogSeverity severity, const char* format, ...) {
- va_list ap;
- va_start(ap, format);
- va_Log(severity, format, ap);
- va_end(ap);
-}
-
-void ClientLogger::VLog(int verboselevel, const char* format, ...) {
- va_list ap;
- va_start(ap, format);
- va_VLog(verboselevel, format, ap);
- va_end(ap);
-}
-
-void ClientLogger::va_Log(logging::LogSeverity severity,
- const char* format, va_list ap) {
- std::string message;
- base::StringAppendV(&message, format, ap);
- logging::LogMessage(__FILE__, __LINE__, severity).stream() << message;
-}
-
-void ClientLogger::va_VLog(int verboselevel, const char* format, va_list ap) {
- std::string message;
- base::StringAppendV(&message, format, ap);
- VLOG(verboselevel) << message;
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/client/client_logger.h ('k') | remoting/client/plugin/pepper_client_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698