diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-09 02:14:08 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-09 02:14:08 +0000 |
commit | 5468a411b5d03bc6788aa684381f3d3cc637d076 (patch) | |
tree | b49365bbb87f548d36c5b10a8f31146121580bc2 /ceee/ie/broker | |
parent | 2e92b988903e692dfb7bdc648d02dc03e47a302a (diff) | |
download | chromium_src-5468a411b5d03bc6788aa684381f3d3cc637d076.zip chromium_src-5468a411b5d03bc6788aa684381f3d3cc637d076.tar.gz chromium_src-5468a411b5d03bc6788aa684381f3d3cc637d076.tar.bz2 |
Call IERefreshElevationPolicy after changing the policy.
BUG=65973
TEST=This is hard to test; when CEEE auto-updates while your browser is running, you should see no prompt for elevation like the one in the section "Starting Processes from Protected Mode" in this article: http://msdn.microsoft.com/en-us/library/bb250462(VS.85).aspx
Review URL: http://codereview.chromium.org/5663004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68695 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ceee/ie/broker')
-rw-r--r-- | ceee/ie/broker/broker_module.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ceee/ie/broker/broker_module.cc b/ceee/ie/broker/broker_module.cc index 6728c06..acb8a3e 100644 --- a/ceee/ie/broker/broker_module.cc +++ b/ceee/ie/broker/broker_module.cc @@ -6,6 +6,7 @@ #include <atlbase.h> #include <atlhost.h> +#include <iepmapi.h> #include "base/at_exit.h" #include "base/command_line.h" @@ -213,7 +214,11 @@ CeeeBrokerModule::~CeeeBrokerModule() { } HRESULT WINAPI CeeeBrokerModule::UpdateRegistryAppId(BOOL reg) throw() { - return com::ModuleRegistrationWithoutAppid(IDR_BROKER_MODULE, reg); + HRESULT hr = com::ModuleRegistrationWithoutAppid(IDR_BROKER_MODULE, reg); + if (SUCCEEDED(hr)) { + hr = ::IERefreshElevationPolicy(); + } + return hr; } namespace ceee_module_util { |