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

Side by Side Diff: mojo/shell/init.cc

Issue 189603007: Let DCHECK in non-official-release build be opt-in with dcheck_always_on=1 only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For landing Created 6 years, 9 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 "mojo/shell/init.h" 5 #include "mojo/shell/init.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 namespace shell { 10 namespace shell {
11 11
12 void InitializeLogging() { 12 void InitializeLogging() {
13 logging::LoggingSettings settings; 13 logging::LoggingSettings settings;
14 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; 14 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
15 settings.dcheck_state =
16 logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS;
17 logging::InitLogging(settings); 15 logging::InitLogging(settings);
18 // To view log output with IDs and timestamps use "adb logcat -v threadtime". 16 // To view log output with IDs and timestamps use "adb logcat -v threadtime".
19 logging::SetLogItems(false, // Process ID 17 logging::SetLogItems(false, // Process ID
20 false, // Thread ID 18 false, // Thread ID
21 false, // Timestamp 19 false, // Timestamp
22 false); // Tick count 20 false); // Tick count
23 } 21 }
24 22
25 } // namespace shell 23 } // namespace shell
26 } // namespace mojo 24 } // namespace mojo
OLDNEW
« no previous file with comments | « content/common/gpu/media/video_encode_accelerator_unittest.cc ('k') | tools/android/forwarder2/daemon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698