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" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/debug/trace_event.h" | 12 #include "base/debug/trace_event.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/logging_win.h" | 14 #include "base/logging_win.h" |
| 15 #include "ceee/common/com_utils.h" |
15 #include "ceee/ie/broker/broker.h" | 16 #include "ceee/ie/broker/broker.h" |
16 #include "ceee/ie/broker/broker_rpc_server.h" | 17 #include "ceee/ie/broker/broker_rpc_server.h" |
17 #include "ceee/ie/broker/chrome_postman.h" | 18 #include "ceee/ie/broker/chrome_postman.h" |
18 #include "ceee/ie/broker/executors_manager.h" | 19 #include "ceee/ie/broker/executors_manager.h" |
19 #include "ceee/ie/broker/resource.h" | 20 #include "ceee/ie/broker/resource.h" |
20 #include "ceee/ie/broker/window_events_funnel.h" | 21 #include "ceee/ie/broker/window_events_funnel.h" |
| 22 #include "ceee/ie/common/ceee_module_util.h" |
| 23 #include "ceee/ie/common/crash_reporter.h" |
21 #include "ceee/ie/plugin/toolband/toolband_proxy.h" | 24 #include "ceee/ie/plugin/toolband/toolband_proxy.h" |
22 #include "ceee/ie/common/crash_reporter.h" | |
23 #include "ceee/common/com_utils.h" | |
24 #include "chrome/common/url_constants.h" | 25 #include "chrome/common/url_constants.h" |
25 #include "chrome_frame/metrics_service.h" | 26 #include "chrome_frame/metrics_service.h" |
26 | 27 |
27 namespace { | 28 namespace { |
28 | 29 |
29 const wchar_t kLogFileName[] = L"CeeeBroker.log"; | 30 const wchar_t kLogFileName[] = L"CeeeBroker.log"; |
30 | 31 |
31 // {6E3D6168-1DD2-4edb-A183-584C2C66E96D} | 32 // {6E3D6168-1DD2-4edb-A183-584C2C66E96D} |
32 const GUID kCeeeBrokerLogProviderName = | 33 const GUID kCeeeBrokerLogProviderName = |
33 { 0x6e3d6168, 0x1dd2, 0x4edb, | 34 { 0x6e3d6168, 0x1dd2, 0x4edb, |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 chrome_postman_.Term(); | 208 chrome_postman_.Term(); |
208 } | 209 } |
209 | 210 |
210 CeeeBrokerModule::~CeeeBrokerModule() { | 211 CeeeBrokerModule::~CeeeBrokerModule() { |
211 crash_reporter_.ShutdownCrashReporting(); | 212 crash_reporter_.ShutdownCrashReporting(); |
212 logging::CloseLogFile(); | 213 logging::CloseLogFile(); |
213 TRACE_EVENT_END("ceee.broker", this, ""); | 214 TRACE_EVENT_END("ceee.broker", this, ""); |
214 } | 215 } |
215 | 216 |
216 HRESULT WINAPI CeeeBrokerModule::UpdateRegistryAppId(BOOL reg) throw() { | 217 HRESULT WINAPI CeeeBrokerModule::UpdateRegistryAppId(BOOL reg) throw() { |
217 return com::ModuleRegistrationWithoutAppid(IDR_BROKER_MODULE, reg); | 218 HRESULT hr = com::ModuleRegistrationWithoutAppid(IDR_BROKER_MODULE, reg); |
| 219 if (SUCCEEDED(hr)) { |
| 220 ceee_module_util::RefreshElevationPolicyIfNeeded(); |
| 221 } |
| 222 return hr; |
218 } | 223 } |
219 | 224 |
220 namespace ceee_module_util { | 225 namespace ceee_module_util { |
221 | 226 |
222 LONG LockModule() { | 227 LONG LockModule() { |
223 return module.LockModule(); | 228 return module.LockModule(); |
224 } | 229 } |
225 | 230 |
226 LONG UnlockModule() { | 231 LONG UnlockModule() { |
227 return module.UnlockModule(); | 232 return module.UnlockModule(); |
228 } | 233 } |
229 | 234 |
230 } // namespace | 235 } // namespace |
OLD | NEW |