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

Side by Side Diff: third_party/libjingle/overrides/initialize_module.cc

Issue 16519003: Define a LoggingSettings struct to use for InitLogging() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "allocator_shim/allocator_stub.h" 5 #include "allocator_shim/allocator_stub.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "init_webrtc.h" 9 #include "init_webrtc.h"
10 #include "talk/base/basictypes.h" 10 #include "talk/base/basictypes.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 *create_media_engine = &CreateWebRtcMediaEngine; 59 *create_media_engine = &CreateWebRtcMediaEngine;
60 *destroy_media_engine = &DestroyWebRtcMediaEngine; 60 *destroy_media_engine = &DestroyWebRtcMediaEngine;
61 61
62 if (CommandLine::Init(0, NULL)) { 62 if (CommandLine::Init(0, NULL)) {
63 #if !defined(OS_WIN) 63 #if !defined(OS_WIN)
64 // This is not needed on Windows since CommandLine::Init has already 64 // This is not needed on Windows since CommandLine::Init has already
65 // done the equivalent thing via the GetCommandLine() API. 65 // done the equivalent thing via the GetCommandLine() API.
66 CommandLine::ForCurrentProcess()->AppendArguments(command_line, true); 66 CommandLine::ForCurrentProcess()->AppendArguments(command_line, true);
67 #endif 67 #endif
68 logging::InitLogging( 68 logging::LoggingSettings settings;
69 NULL, 69 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
70 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, 70 logging::InitLogging(settings);
71 logging::LOCK_LOG_FILE,
72 logging::DELETE_OLD_LOG_FILE,
73 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
74 71
75 // Override the log message handler to forward logs to chrome's handler. 72 // Override the log message handler to forward logs to chrome's handler.
76 logging::SetLogMessageHandler(log_handler); 73 logging::SetLogMessageHandler(log_handler);
77 } 74 }
78 75
79 return true; 76 return true;
80 } 77 }
81 } // extern "C" 78 } // extern "C"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698