| 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 and DLL exports. | 5 // Declaration of ATL module object and DLL exports. |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/atomic_ref_count.h" | 8 #include "base/atomic_ref_count.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // It seems we're obliged to initialize the current command line | 92 // It seems we're obliged to initialize the current command line |
| 93 // before initializing logging. This feels a little strange for | 93 // before initializing logging. This feels a little strange for |
| 94 // a plugin. | 94 // a plugin. |
| 95 CommandLine::Init(0, NULL); | 95 CommandLine::Init(0, NULL); |
| 96 | 96 |
| 97 logging::InitLogging( | 97 logging::InitLogging( |
| 98 logfile_path, | 98 logfile_path, |
| 99 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, | 99 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, |
| 100 logging::LOCK_LOG_FILE, | 100 logging::LOCK_LOG_FILE, |
| 101 logging::APPEND_TO_OLD_LOG_FILE); | 101 logging::APPEND_TO_OLD_LOG_FILE, |
| 102 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
| 102 | 103 |
| 103 // Initialize ETW logging. | 104 // Initialize ETW logging. |
| 104 logging::LogEventProvider::Initialize(kCeeeIeLogProviderName); | 105 logging::LogEventProvider::Initialize(kCeeeIeLogProviderName); |
| 105 | 106 |
| 106 // Initialize control hosting. | 107 // Initialize control hosting. |
| 107 BOOL initialized = AtlAxWinInit(); | 108 BOOL initialized = AtlAxWinInit(); |
| 108 DCHECK(initialized); | 109 DCHECK(initialized); |
| 109 | 110 |
| 110 // Needs to be called before we can use GURL. | 111 // Needs to be called before we can use GURL. |
| 111 chrome::RegisterChromeSchemes(); | 112 chrome::RegisterChromeSchemes(); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 } | 278 } |
| 278 | 279 |
| 279 CEEE_DEFINE_DLL_REGISTER_SERVER() | 280 CEEE_DEFINE_DLL_REGISTER_SERVER() |
| 280 | 281 |
| 281 // DllUnregisterServer - Removes entries from the system registry | 282 // DllUnregisterServer - Removes entries from the system registry |
| 282 STDAPI DllUnregisterServer(void) { | 283 STDAPI DllUnregisterServer(void) { |
| 283 // We always allow unregistration, even if no --ceee install flag. | 284 // We always allow unregistration, even if no --ceee install flag. |
| 284 HRESULT hr = module.DllUnregisterServer(); | 285 HRESULT hr = module.DllUnregisterServer(); |
| 285 return hr; | 286 return hr; |
| 286 } | 287 } |
| OLD | NEW |