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

Unified Diff: chrome/tools/disable_outdated_build_detector/disable_outdated_build_detector_main.cc

Issue 2328493002: Remove the tool to disable the outdated build detector for organic installs of Chrome. (Closed)
Patch Set: Created 4 years, 3 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/tools/disable_outdated_build_detector/disable_outdated_build_detector_main.cc
diff --git a/chrome/tools/disable_outdated_build_detector/disable_outdated_build_detector_main.cc b/chrome/tools/disable_outdated_build_detector/disable_outdated_build_detector_main.cc
deleted file mode 100644
index 387343cd8e0fa604367f691e81128795c601ede3..0000000000000000000000000000000000000000
--- a/chrome/tools/disable_outdated_build_detector/disable_outdated_build_detector_main.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// The main entrypoint for the tool that disables the outdated build detector
-// for organic installs of Chrome on Windows XP and Vista. See
-// disable_outdated_build_detector.h for more information.
-
-#include <windows.h>
-
-#include "chrome/tools/disable_outdated_build_detector/disable_outdated_build_detector.h"
-
-namespace {
-
-bool IsVistaOrOlder() {
- OSVERSIONINFO version_info = {sizeof(version_info)};
- return ::GetVersionEx(&version_info) && (version_info.dwMajorVersion < 6 ||
- (version_info.dwMajorVersion == 6 &&
- version_info.dwMinorVersion == 0));
-}
-
-} // namespace
-
-int WINAPI wWinMain(HINSTANCE /* instance */,
- HINSTANCE /* unused */,
- wchar_t* command_line,
- int /* command_show */) {
- if (!IsVistaOrOlder())
- return static_cast<int>(ExitCode::UNSUPPORTED_OS);
-
- // For reasons, wWinMain returns an int rather than a DWORD. This value
- // eventually makes its way to ExitProcess, which indeed takes an unsigned
- // int.
- return static_cast<int>(DisableOutdatedBuildDetector(command_line));
-}

Powered by Google App Engine
This is Rietveld 408576698