summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2011-05-17 14:56:51 +0100
committerKristian Monsen <kristianm@google.com>2011-05-23 12:55:14 +0100
commit1958f25718c34665d6f3fc3dcd18db91ba52ec33 (patch)
tree8b906427575dc550eed17aabdaf8ade82075916a /base
parent653c44a719415c79343bcd3d792b2af49158bef9 (diff)
downloadexternal_chromium-1958f25718c34665d6f3fc3dcd18db91ba52ec33.zip
external_chromium-1958f25718c34665d6f3fc3dcd18db91ba52ec33.tar.gz
external_chromium-1958f25718c34665d6f3fc3dcd18db91ba52ec33.tar.bz2
Removing local changes that strip out vlog
Slightly less #ifdef's Change-Id: Icd55c23e1e8ffb4b7f3b8740617b96f257160aab
Diffstat (limited to 'base')
-rw-r--r--base/logging.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/base/logging.cc b/base/logging.cc
index 8a957c9..26cc0c5 100644
--- a/base/logging.cc
+++ b/base/logging.cc
@@ -53,10 +53,7 @@ typedef pthread_mutex_t* MutexHandle;
#include "base/lock_impl.h"
#include "base/string_piece.h"
#include "base/utf_string_conversions.h"
-#ifndef ANDROID
#include "base/vlog.h"
-#endif
-
#if defined(OS_POSIX)
#include "base/safe_strerror_posix.h"
#endif
@@ -68,9 +65,7 @@ typedef pthread_mutex_t* MutexHandle;
namespace logging {
bool g_enable_dcheck = false;
-#ifndef ANDROID
VlogInfo* g_vlog_info = NULL;
-#endif
const char* const log_severity_names[LOG_NUM_SEVERITIES] = {
"INFO", "WARNING", "ERROR", "ERROR_REPORT", "FATAL" };
@@ -360,7 +355,9 @@ bool BaseInitLoggingImpl(const PathChar* new_log_file,
LogLockingState lock_log,
OldFileDeletionState delete_old) {
#ifdef ANDROID
+ // ifdef is here because we don't support parsing command line parameters
g_enable_dcheck = false;
+ g_vlog_info = NULL;
#else
CommandLine* command_line = CommandLine::ForCurrentProcess();
g_enable_dcheck =
@@ -418,14 +415,10 @@ int GetVlogVerbosity() {
}
int GetVlogLevelHelper(const char* file, size_t N) {
-#ifdef ANDROID
- return 0;
-#else
DCHECK_GT(N, 0U);
return g_vlog_info ?
g_vlog_info->GetVlogLevel(base::StringPiece(file, N - 1)) :
GetVlogVerbosity();
-#endif
}
void SetLogItems(bool enable_process_id, bool enable_thread_id,