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

Unified Diff: chrome/installer/gcapi/gcapi_reactivation.cc

Issue 9465013: Mike's change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing unneeded line breaks. Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698