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

Side by Side Diff: ceee/ie/broker/broker_module.cc

Issue 6295006: Merge 68951 - Added refreshing of elevation policy on first run of new versio... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/597/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 | « no previous file | ceee/ie/broker/broker_rpc_client.h » ('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 // 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
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
OLDNEW
« no previous file with comments | « no previous file | ceee/ie/broker/broker_rpc_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698