OLD | NEW |
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 // Declaration of ATL module object for EXE module. | 5 // Declaration of ATL module object for EXE module. |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 #include <atlhost.h> | 8 #include <atlhost.h> |
9 | 9 |
10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 ::PathAppend(logfile_path, kLogFileName); | 103 ::PathAppend(logfile_path, kLogFileName); |
104 | 104 |
105 // It seems we're obliged to initialize the current command line | 105 // It seems we're obliged to initialize the current command line |
106 // before initializing logging. | 106 // before initializing logging. |
107 CommandLine::Init(0, NULL); | 107 CommandLine::Init(0, NULL); |
108 | 108 |
109 logging::InitLogging( | 109 logging::InitLogging( |
110 logfile_path, | 110 logfile_path, |
111 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, | 111 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, |
112 logging::LOCK_LOG_FILE, | 112 logging::LOCK_LOG_FILE, |
113 logging::APPEND_TO_OLD_LOG_FILE); | 113 logging::APPEND_TO_OLD_LOG_FILE, |
| 114 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
114 | 115 |
115 // Initialize ETW logging. | 116 // Initialize ETW logging. |
116 logging::LogEventProvider::Initialize(kCeeeBrokerLogProviderName); | 117 logging::LogEventProvider::Initialize(kCeeeBrokerLogProviderName); |
117 | 118 |
118 // Initialize control hosting. | 119 // Initialize control hosting. |
119 BOOL initialized = AtlAxWinInit(); | 120 BOOL initialized = AtlAxWinInit(); |
120 DCHECK(initialized); | 121 DCHECK(initialized); |
121 | 122 |
122 // Needs to be called before we can use GURL. | 123 // Needs to be called before we can use GURL. |
123 chrome::RegisterChromeSchemes(); | 124 chrome::RegisterChromeSchemes(); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 226 |
226 LONG LockModule() { | 227 LONG LockModule() { |
227 return module.LockModule(); | 228 return module.LockModule(); |
228 } | 229 } |
229 | 230 |
230 LONG UnlockModule() { | 231 LONG UnlockModule() { |
231 return module.UnlockModule(); | 232 return module.UnlockModule(); |
232 } | 233 } |
233 | 234 |
234 } // namespace | 235 } // namespace |
OLD | NEW |