Skip to content

Commit

Permalink
Remove kMojoFixAssociatedHandleLeak Feature Flag
Browse files Browse the repository at this point in the history
Bug: 349794129
Change-Id: Idcb932c9aae82b0e2b67b4324f9aafe6656635fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5665793
Commit-Queue: Bo Liu <[email protected]>
Reviewed-by: Ken Rockot <[email protected]>
Auto-Submit: Janice Liu <[email protected]>
Reviewed-by: Bo Liu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1320991}
  • Loading branch information
Jenny-233 authored and Chromium LUCI CQ committed Jun 28, 2024
1 parent 34f0fe4 commit c9fe460
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 35 deletions.
8 changes: 0 additions & 8 deletions android_webview/browser/aw_field_trials.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,6 @@ void AwFieldTrials::RegisterFeatureOverrides(base::FeatureList* feature_list) {
aw_feature_overrides.DisableFeature(
net::features::kThirdPartyStoragePartitioning);

if (!base::FeatureList::IsEnabled(
mojo::features::kMojoFixAssociatedHandleLeak)) {
// Disable support for partitioning blob URLs if the bug fix that prevents
// blob URL creation from hanging under certain conditions isn't enabled.
aw_feature_overrides.DisableFeature(
net::features::kSupportPartitionedBlobUrl);
}

// Disable the passthrough on WebView.
aw_feature_overrides.DisableFeature(
::features::kDefaultPassthroughCommandDecoder);
Expand Down
4 changes: 0 additions & 4 deletions ipc/ipc_channel_mojo_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1307,10 +1307,6 @@ TEST_F(IPCChannelProxyMojoTest, DropAssociatedReceiverWithSyncCallInFlight) {
DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT_WITH_CUSTOM_FIXTURE(
SyncCallToDroppedReceiver,
ChannelProxyClient) {
// Force-enable the fix, since ipc_tests doesn't initialize FeatureList.
const base::test::ScopedFeatureList kFeatures(
mojo::features::kMojoFixAssociatedHandleLeak);

DummyListener listener;
CreateProxy(&listener);
RunProxy();
Expand Down
5 changes: 0 additions & 5 deletions ipc/ipc_mojo_bootstrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,6 @@ class ChannelAssociatedGroupController
}

void NotifyLocalEndpointOfPeerClosure(mojo::InterfaceId id) override {
if (!base::FeatureList::IsEnabled(
mojo::features::kMojoFixAssociatedHandleLeak)) {
return;
}

if (!task_runner_->RunsTasksInCurrentSequence()) {
task_runner_->PostTask(
FROM_HERE, base::BindOnce(&ChannelAssociatedGroupController::
Expand Down
7 changes: 0 additions & 7 deletions mojo/public/cpp/bindings/features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,5 @@ BASE_FEATURE(kMojoPredictiveAllocation,
#endif
);

// Enables a bugfix for https://crbug.com/331636067. This is a very old bug, and
// this flag will be used to understand the stability and performance impact of
// the fix, if any.
BASE_FEATURE(kMojoFixAssociatedHandleLeak,
"MojoFixAssociatedHandleLeak",
base::FEATURE_ENABLED_BY_DEFAULT);

} // namespace features
} // namespace mojo
3 changes: 0 additions & 3 deletions mojo/public/cpp/bindings/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ BASE_DECLARE_FEATURE(kMojoRecordUnreadMessageCount);
COMPONENT_EXPORT(MOJO_CPP_BINDINGS_BASE)
BASE_DECLARE_FEATURE(kMojoPredictiveAllocation);

COMPONENT_EXPORT(MOJO_CPP_BINDINGS_BASE)
BASE_DECLARE_FEATURE(kMojoFixAssociatedHandleLeak);

} // namespace features
} // namespace mojo

Expand Down
4 changes: 0 additions & 4 deletions mojo/public/cpp/bindings/lib/multiplex_router.cc
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,6 @@ void MultiplexRouter::CloseEndpointHandle(
}

void MultiplexRouter::NotifyLocalEndpointOfPeerClosure(InterfaceId id) {
if (!base::FeatureList::IsEnabled(features::kMojoFixAssociatedHandleLeak)) {
return;
}

if (!task_runner_->RunsTasksInCurrentSequence()) {
task_runner_->PostTask(
FROM_HERE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1195,10 +1195,6 @@ TEST_F(AssociatedInterfaceTest, CloseSerializedAssociatedEndpoints) {
// lifetime is properly managed when associated endpoints are serialized into
// a message that gets dropped before transmission.

// Force-enable the feature since this test requires it to pass.
base::test::ScopedFeatureList kFeatures{
features::kMojoFixAssociatedHandleLeak};

Remote<mojom::ClumsyBinder> binder;
ClumsyBinderImpl binder_impl(binder.BindNewPipeAndPassReceiver());

Expand Down

0 comments on commit c9fe460

Please sign in to comment.