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

Side by Side Diff: chrome/tools/crash_service/main.cc

Issue 6100007: Revert 70782 - Made logging not look up --enable-dcheck from command line... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome/installer/util/logging_installer.cc ('k') | chrome_frame/chrome_tab.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/tools/crash_service/crash_service.h" 5 #include "chrome/tools/crash_service/crash_service.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <tchar.h> 9 #include <tchar.h>
10 10
(...skipping 27 matching lines...) Expand all
38 base::AtExitManager exit_manager; 38 base::AtExitManager exit_manager;
39 39
40 CommandLine::Init(0, NULL); 40 CommandLine::Init(0, NULL);
41 41
42 // We use/create a directory under the user's temp folder, for logging. 42 // We use/create a directory under the user's temp folder, for logging.
43 FilePath operating_dir; 43 FilePath operating_dir;
44 GetCrashServiceDirectory(&operating_dir); 44 GetCrashServiceDirectory(&operating_dir);
45 FilePath log_file = operating_dir.Append(kStandardLogFile); 45 FilePath log_file = operating_dir.Append(kStandardLogFile);
46 46
47 // Logging to a file with pid, tid and timestamp. 47 // Logging to a file with pid, tid and timestamp.
48 logging::InitLogging( 48 logging::InitLogging(log_file.value().c_str(), logging::LOG_ONLY_TO_FILE,
49 log_file.value().c_str(), 49 logging::LOCK_LOG_FILE, logging::APPEND_TO_OLD_LOG_FILE);
50 logging::LOG_ONLY_TO_FILE,
51 logging::LOCK_LOG_FILE,
52 logging::APPEND_TO_OLD_LOG_FILE,
53 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
54 logging::SetLogItems(true, true, true, false); 50 logging::SetLogItems(true, true, true, false);
55 51
56 VLOG(1) << "session start. cmdline is [" << cmd_line << "]"; 52 VLOG(1) << "session start. cmdline is [" << cmd_line << "]";
57 53
58 CrashService crash_service(operating_dir.ToWStringHack()); 54 CrashService crash_service(operating_dir.ToWStringHack());
59 if (!crash_service.Initialize(::GetCommandLineW())) 55 if (!crash_service.Initialize(::GetCommandLineW()))
60 return 1; 56 return 1;
61 57
62 VLOG(1) << "ready to process crash requests"; 58 VLOG(1) << "ready to process crash requests";
63 59
64 // Enter the message loop. 60 // Enter the message loop.
65 int retv = crash_service.ProcessingLoop(); 61 int retv = crash_service.ProcessingLoop();
66 // Time to exit. 62 // Time to exit.
67 VLOG(1) << "session end. return code is " << retv; 63 VLOG(1) << "session end. return code is " << retv;
68 return retv; 64 return retv;
69 } 65 }
OLDNEW
« no previous file with comments | « chrome/installer/util/logging_installer.cc ('k') | chrome_frame/chrome_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698