-
-
Save goodov/a62434bb5e940b2f9f6b26e711bdc638 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright (c) 2022 The Brave Authors. All rights reserved. | |
* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
#include "content/child/runtime_features.h" | |
#define SetRuntimeFeaturesDefaultsAndUpdateFromArgs \ | |
SetRuntimeFeaturesDefaultsAndUpdateFromArgs_ChromiumImpl | |
#include "src/content/child/runtime_features.cc" | |
#undef SetRuntimeFeaturesDefaultsAndUpdateFromArgs | |
namespace content { | |
void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( | |
const base::CommandLine& command_line) { | |
SetRuntimeFeaturesDefaultsAndUpdateFromArgs_ChromiumImpl(command_line); | |
constexpr base::StringPiece kDisableBlinkFeatures[] = { | |
"SpeculationRulesPrefetchProxy", | |
}; | |
for (const auto& disabled_feature : kDisableBlinkFeatures) { | |
WebRuntimeFeatures::EnableFeatureFromString(std::string(disabled_feature), | |
false); | |
} | |
ResolveInvalidConfigurations(); | |
} | |
} // namespace content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment