Chromium Code Reviews| Index: chrome/installer/gcapi/gcapi_reactivation.cc |
| diff --git a/chrome/installer/gcapi/gcapi_reactivation.cc b/chrome/installer/gcapi/gcapi_reactivation.cc |
| index 6755e2fc26256262653c8a40e31bb7b0c879d298..f5d26c56e90c2f6cd66fd005bd86247fda1a2dda 100644 |
| --- a/chrome/installer/gcapi/gcapi_reactivation.cc |
| +++ b/chrome/installer/gcapi/gcapi_reactivation.cc |
| @@ -7,6 +7,7 @@ |
| #include "base/time.h" |
| #include "base/win/registry.h" |
| #include "chrome/installer/util/google_update_constants.h" |
| +#include "chrome/installer/gcapi/gcapi.h" |
| using base::Time; |
| using base::win::RegKey; |
| @@ -44,9 +45,15 @@ bool HasBeenReactivatedByBrandCodes( |
| return success; |
| } |
| -bool SetReactivationBrandCode(const std::wstring& brand_code) { |
| +bool SetReactivationBrandCode(const std::wstring& brand_code, int shell_mode) { |
| bool success = false; |
| + // This function currently only should be run in a non-elevated shell, |
| + // so we return "true" if it is being invoked from an elevated shell. |
| + if (shell_mode == GCAPI_INVOKED_UAC_ELEVATION) { |
| + return true; |
| + } |
|
Roger Tawa OOO till Jul 10th
2012/02/24 21:46:59
no need for { and }
robertshield
2012/02/24 22:21:40
Done.
|
| + |
| std::wstring path(google_update::kRegPathClientState); |
| path += L"\\"; |
| path += google_update::kChromeUpgradeCode; |