Index: content/app/android/library_loader_hooks.cc |
diff --git a/content/app/android/library_loader_hooks.cc b/content/app/android/library_loader_hooks.cc |
index 9af580e273e256b087aeacc356cb4f0b67fbbf07..725491d67fe07d5a67b3bb537178cda83e1b2c7a 100644 |
--- a/content/app/android/library_loader_hooks.cc |
+++ b/content/app/android/library_loader_hooks.cc |
@@ -55,15 +55,13 @@ static jint LibraryLoaded(JNIEnv* env, jclass clazz, |
// Note: because logging is setup here right after copying the command line |
// array from java to native up top of this method, any code that adds the |
// --enable-dcheck switch must do so on the Java side. |
- logging::DcheckState dcheck_state = |
+ logging::LoggingSettings settings; |
+ settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; |
+ settings.dcheck_state = |
command_line->HasSwitch(switches::kEnableDCHECK) ? |
logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS : |
logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS; |
- logging::InitLogging(NULL, |
- logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, |
- logging::DONT_LOCK_LOG_FILE, |
- logging::DELETE_OLD_LOG_FILE, |
- dcheck_state); |
+ logging::InitLogging(settings); |
// To view log output with IDs and timestamps use "adb logcat -v threadtime". |
logging::SetLogItems(false, // Process ID |
false, // Thread ID |