Index: chrome_frame/chrome_tab.cc |
diff --git a/chrome_frame/chrome_tab.cc b/chrome_frame/chrome_tab.cc |
index 7b80394fcf29a0984df7ae6c825b3952b47a0008..f3167474e6a29463a662c3119147c4197f7ea1e3 100644 |
--- a/chrome_frame/chrome_tab.cc |
+++ b/chrome_frame/chrome_tab.cc |
@@ -599,13 +599,10 @@ HRESULT RegisterActiveX(bool reg, bool is_system) { |
HRESULT RegisterElevationPolicy(bool reg, bool is_system) { |
HRESULT hr = S_OK; |
- if (reg && base::win::GetVersion() >= base::win::VERSION_VISTA) { |
+ if (base::win::GetVersion() >= base::win::VERSION_VISTA) { |
// Register the elevation policy. This must succeed for Chrome Frame to |
// be able launch Chrome when running in low-integrity IE. |
- // Note that this is not done on unregistration, the installer will |
- // explicitly remove the policy on uninstall. |
- hr = _AtlModule.UpdateRegistryFromResourceS(IDR_CHROMEFRAME_ELEVATION, |
- reg); |
+ hr = _AtlModule.UpdateRegistryFromResourceS(IDR_CHROMEFRAME_ELEVATION, reg); |
if (SUCCEEDED(hr)) { |
hr = RefreshElevationPolicy(); |
} |