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

Side by Side Diff: webkit/support/webkit_support.cc

Issue 8467028: Enable DVLOG on non official release build based on the parameter passed for InitLogging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 9 years, 1 month 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
« no previous file with comments | « net/tools/tld_cleanup/tld_cleanup.cc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/support/webkit_support.h" 5 #include "webkit/support/webkit_support.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/debugger.h" 10 #include "base/debug/debugger.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 PathService::Get(base::DIR_EXE, &log_filename); 99 PathService::Get(base::DIR_EXE, &log_filename);
100 log_filename = log_filename.AppendASCII("DumpRenderTree.log"); 100 log_filename = log_filename.AppendASCII("DumpRenderTree.log");
101 logging::InitLogging( 101 logging::InitLogging(
102 log_filename.value().c_str(), 102 log_filename.value().c_str(),
103 // Only log to a file. This prevents debugging output from disrupting 103 // Only log to a file. This prevents debugging output from disrupting
104 // whether or not we pass. 104 // whether or not we pass.
105 logging::LOG_ONLY_TO_FILE, 105 logging::LOG_ONLY_TO_FILE,
106 // We might have multiple DumpRenderTree processes going at once. 106 // We might have multiple DumpRenderTree processes going at once.
107 logging::LOCK_LOG_FILE, 107 logging::LOCK_LOG_FILE,
108 logging::DELETE_OLD_LOG_FILE, 108 logging::DELETE_OLD_LOG_FILE,
109 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); 109 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS,
110 logging::DISABLE_DLOG_FOR_NON_OFFICIAL_RELEASE_BUILDS);
110 111
111 // We want process and thread IDs because we may have multiple processes. 112 // We want process and thread IDs because we may have multiple processes.
112 const bool kProcessId = true; 113 const bool kProcessId = true;
113 const bool kThreadId = true; 114 const bool kThreadId = true;
114 const bool kTimestamp = true; 115 const bool kTimestamp = true;
115 const bool kTickcount = true; 116 const bool kTickcount = true;
116 logging::SetLogItems(kProcessId, kThreadId, !kTimestamp, kTickcount); 117 logging::SetLogItems(kProcessId, kThreadId, !kTimestamp, kTickcount);
117 } 118 }
118 119
119 class TestEnvironment { 120 class TestEnvironment {
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 return ui::GdkNativeKeyCodeForWindowsKeyCode(code, shift); 640 return ui::GdkNativeKeyCodeForWindowsKeyCode(code, shift);
640 } 641 }
641 #endif 642 #endif
642 643
643 // Timers 644 // Timers
644 double GetForegroundTabTimerInterval() { 645 double GetForegroundTabTimerInterval() {
645 return webkit_glue::kForegroundTabTimerInterval; 646 return webkit_glue::kForegroundTabTimerInterval;
646 } 647 }
647 648
648 } // namespace webkit_support 649 } // namespace webkit_support
OLDNEW
« no previous file with comments | « net/tools/tld_cleanup/tld_cleanup.cc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698