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

Unified Diff: chrome/installer/util/google_update_util.cc

Issue 2078913005: Add a chrome_elf_unittest ChromeElfLoadSanityTest which validates that loading chrome_elf does not … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a static method InitFromArgvForTesting for Windows to honor passed in arguments Created 4 years, 6 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/util/google_update_util.cc
diff --git a/chrome/installer/util/google_update_util.cc b/chrome/installer/util/google_update_util.cc
index 3a8558f56b0d2e66268f83c409501b8d05f8428b..42ddb1a00d4b8943c08fe6db79d01f9c0735a246 100644
--- a/chrome/installer/util/google_update_util.cc
+++ b/chrome/installer/util/google_update_util.cc
@@ -16,7 +16,6 @@
#include "base/win/registry.h"
#include "base/win/scoped_handle.h"
#include "base/win/win_util.h"
-#include "base/win/windows_version.h"
#include "chrome/installer/util/browser_distribution.h"
#include "chrome/installer/util/google_update_constants.h"
#include "chrome/installer/util/google_update_settings.h"
@@ -178,8 +177,7 @@ void ElevateIfNeededToReenableUpdates() {
base::LaunchOptions launch_options;
launch_options.force_breakaway_from_job_ = true;
- if (base::win::GetVersion() >= base::win::VERSION_VISTA &&
- base::win::UserAccountControlIsEnabled()) {
+ if (base::win::UserAccountControlIsEnabled()) {
base::LaunchElevatedProcess(cmd, launch_options);
} else {
base::LaunchProcess(cmd, launch_options);

Powered by Google App Engine
This is Rietveld 408576698