Skip to content

Commit

Permalink
Legacy progwrp retired - patched DLL-specific binaries will replace it
Browse files Browse the repository at this point in the history
  • Loading branch information
win32ss committed Feb 12, 2025
1 parent 87515ba commit a998c43
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 1 deletion.
6 changes: 6 additions & 0 deletions base/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ if (is_win) {
ldflags = [
# Linking with shcore.lib causes the shcore api forwarder dll to load.
"/DELAYLOAD:api-ms-win-shcore-scaling-l1-1-1.dll",

# Linking with OneCore.lib causes the next three dlls to load.
"/DELAYLOAD:api-ms-win-core-realtime-l1-1-1.dll",
"/DELAYLOAD:api-ms-win-power-base-l1-1-0.dll",
"/DELAYLOAD:api-ms-win-power-setting-l1-1-0.dll",
"/DELAYLOAD:cfgmgr32.dll",
"/DELAYLOAD:powrprof.dll",
"/DELAYLOAD:setupapi.dll",
Expand Down Expand Up @@ -1914,6 +1919,7 @@ component("base") {
libs += [
"cfgmgr32.lib",
"ntdll.lib",
"onecore.lib",
"pdh.lib",
"powrprof.lib",
"propsys.lib",
Expand Down
1 change: 0 additions & 1 deletion build/config/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ config("default_libs") {
# instead the targets that use the less common ones (e.g. wininet or
# winspool) should include those explicitly.
libs = [
"progwrp.lib",
"ntdll.lib",
"advapi32.lib",
"comdlg32.lib",
Expand Down
72 changes: 72 additions & 0 deletions chrome/browser/supermium_flags.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// Copyright (c) 2025 Legacy Software Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SUPERMIUM_FLAG_CHOICES_H_
#define SUPERMIUM_FLAG_CHOICES_H_

#include "base/features.h"

const FeatureEntry::Choice kTabHoverCards[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{"None",
"tab-hover-cards",
"none"},
{"Tooltip",
"tab-hover-cards",
"tooltip"},
};

const FeatureEntry::Choice kBookmarkBarNewTab[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{"Never",
"bookmark-bar-ntp",
"never"},
};
const FeatureEntry::Choice kOmniboxAutocompleteFiltering[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{"Search suggestions only",
"omnibox-autocomplete-filtering",
"search"},
{"Search suggestions and bookmarks",
"omnibox-autocomplete-filtering",
"search-bookmarks"},
{"Search suggestions and internal chrome pages",
"omnibox-autocomplete-filtering",
"search-chrome"},
{"Search suggestions, bookmarks, and internal chrome pages",
"omnibox-autocomplete-filtering",
"search-bookmarks-chrome"},
};
const FeatureEntry::Choice kExtensionHandlingChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{"Download as regular file",
"extension-mime-request-handling",
"download-as-regular-file"},
{"Always prompt for install",
"extension-mime-request-handling",
"always-prompt-for-install"},
};
const FeatureEntry::Choice kMaxConnectionsPerHostChoices[] = {
{"6", "", ""},
{"15", "max-connections-per-host", "15"},
};
const FeatureEntry::Choice kShowAvatarButtonChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{"Always",
"show-avatar-button",
"always"},
{"Incognito and Guest",
"show-avatar-button",
"incognito-and-guest"},
{"Never",
"show-avatar-button",
"never"}
};
const FeatureEntry::Choice kCloseWindowWithLastTab[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{"Never",
"close-window-with-last-tab",
"never"},
};
#endif // SUPERMIUM_FLAG_CHOICES_H_

0 comments on commit a998c43

Please sign in to comment.