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

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

Issue 5720004: Added refreshing of elevation policy on first run of new version for all user... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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') | ceee/ie/broker/broker_rpc_client.cc » ('J')
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 #include <iepmapi.h>
10 9
11 #include "base/at_exit.h" 10 #include "base/at_exit.h"
12 #include "base/command_line.h" 11 #include "base/command_line.h"
13 #include "base/debug/trace_event.h" 12 #include "base/debug/trace_event.h"
14 #include "base/logging.h" 13 #include "base/logging.h"
15 #include "base/logging_win.h" 14 #include "base/logging_win.h"
15 #include "ceee/common/com_utils.h"
16 #include "ceee/ie/broker/broker.h" 16 #include "ceee/ie/broker/broker.h"
17 #include "ceee/ie/broker/broker_rpc_server.h" 17 #include "ceee/ie/broker/broker_rpc_server.h"
18 #include "ceee/ie/broker/chrome_postman.h" 18 #include "ceee/ie/broker/chrome_postman.h"
19 #include "ceee/ie/broker/executors_manager.h" 19 #include "ceee/ie/broker/executors_manager.h"
20 #include "ceee/ie/broker/resource.h" 20 #include "ceee/ie/broker/resource.h"
21 #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"
22 #include "ceee/ie/plugin/toolband/toolband_proxy.h" 24 #include "ceee/ie/plugin/toolband/toolband_proxy.h"
23 #include "ceee/ie/common/crash_reporter.h"
24 #include "ceee/common/com_utils.h"
25 #include "chrome/common/url_constants.h" 25 #include "chrome/common/url_constants.h"
26 #include "chrome_frame/metrics_service.h" 26 #include "chrome_frame/metrics_service.h"
27 27
28 namespace { 28 namespace {
29 29
30 const wchar_t kLogFileName[] = L"CeeeBroker.log"; 30 const wchar_t kLogFileName[] = L"CeeeBroker.log";
31 31
32 // {6E3D6168-1DD2-4edb-A183-584C2C66E96D} 32 // {6E3D6168-1DD2-4edb-A183-584C2C66E96D}
33 const GUID kCeeeBrokerLogProviderName = 33 const GUID kCeeeBrokerLogProviderName =
34 { 0x6e3d6168, 0x1dd2, 0x4edb, 34 { 0x6e3d6168, 0x1dd2, 0x4edb,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 CeeeBrokerModule::~CeeeBrokerModule() { 210 CeeeBrokerModule::~CeeeBrokerModule() {
211 crash_reporter_.ShutdownCrashReporting(); 211 crash_reporter_.ShutdownCrashReporting();
212 logging::CloseLogFile(); 212 logging::CloseLogFile();
213 TRACE_EVENT_END("ceee.broker", this, ""); 213 TRACE_EVENT_END("ceee.broker", this, "");
214 } 214 }
215 215
216 HRESULT WINAPI CeeeBrokerModule::UpdateRegistryAppId(BOOL reg) throw() { 216 HRESULT WINAPI CeeeBrokerModule::UpdateRegistryAppId(BOOL reg) throw() {
217 HRESULT hr = com::ModuleRegistrationWithoutAppid(IDR_BROKER_MODULE, reg); 217 HRESULT hr = com::ModuleRegistrationWithoutAppid(IDR_BROKER_MODULE, reg);
218 if (SUCCEEDED(hr)) { 218 if (SUCCEEDED(hr)) {
219 hr = ::IERefreshElevationPolicy(); 219 ceee_module_util::RefreshElevationPolicyIfNeeded();
220 } 220 }
221 return hr; 221 return hr;
222 } 222 }
223 223
224 namespace ceee_module_util { 224 namespace ceee_module_util {
225 225
226 LONG LockModule() { 226 LONG LockModule() {
227 return module.LockModule(); 227 return module.LockModule();
228 } 228 }
229 229
230 LONG UnlockModule() { 230 LONG UnlockModule() {
231 return module.UnlockModule(); 231 return module.UnlockModule();
232 } 232 }
233 233
234 } // namespace 234 } // namespace
OLDNEW
« no previous file with comments | « no previous file | ceee/ie/broker/broker_rpc_client.h » ('j') | ceee/ie/broker/broker_rpc_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698