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); | |
115 | 114 |
116 // Initialize ETW logging. | 115 // Initialize ETW logging. |
117 logging::LogEventProvider::Initialize(kCeeeBrokerLogProviderName); | 116 logging::LogEventProvider::Initialize(kCeeeBrokerLogProviderName); |
118 | 117 |
119 // Initialize control hosting. | 118 // Initialize control hosting. |
120 BOOL initialized = AtlAxWinInit(); | 119 BOOL initialized = AtlAxWinInit(); |
121 DCHECK(initialized); | 120 DCHECK(initialized); |
122 | 121 |
123 // Needs to be called before we can use GURL. | 122 // Needs to be called before we can use GURL. |
124 chrome::RegisterChromeSchemes(); | 123 chrome::RegisterChromeSchemes(); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 225 |
227 LONG LockModule() { | 226 LONG LockModule() { |
228 return module.LockModule(); | 227 return module.LockModule(); |
229 } | 228 } |
230 | 229 |
231 LONG UnlockModule() { | 230 LONG UnlockModule() { |
232 return module.UnlockModule(); | 231 return module.UnlockModule(); |
233 } | 232 } |
234 | 233 |
235 } // namespace | 234 } // namespace |
OLD | NEW |