Skip to content

Commit 9f1b561

Browse files
wolfibDevtools-frontend LUCI CQ
authored andcommitted
Remove 'autofill-view' experiment
Experiment has been enabled by default for a long time. Bug: none Change-Id: I3a1e7756197a438c2257a642fa61c60817c0f0f1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6387440 Reviewed-by: Ergün Erdoğmuş <[email protected]> Auto-Submit: Wolfgang Beyer <[email protected]> Commit-Queue: Ergün Erdoğmuş <[email protected]>
1 parent da3c3e6 commit 9f1b561

File tree

11 files changed

+3
-26
lines changed

11 files changed

+3
-26
lines changed

front_end/core/host/UserMetrics.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,6 @@ export enum DevtoolsExperiments {
974974
'highlight-errors-elements-panel' = 73,
975975
'use-source-map-scopes' = 76,
976976
'network-panel-filter-bar-redesign' = 79,
977-
'autofill-view' = 82,
978977
'timeline-show-postmessage-events' = 86,
979978
'timeline-enhanced-traces' = 90,
980979
'timeline-compiled-sources' = 91,

front_end/core/root/Runtime.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ export const enum ExperimentName {
316316
HIGHLIGHT_ERRORS_ELEMENTS_PANEL = 'highlight-errors-elements-panel',
317317
USE_SOURCE_MAP_SCOPES = 'use-source-map-scopes',
318318
NETWORK_PANEL_FILTER_BAR_REDESIGN = 'network-panel-filter-bar-redesign',
319-
AUTOFILL_VIEW = 'autofill-view',
320319
TIMELINE_SHOW_POST_MESSAGE_EVENTS = 'timeline-show-postmessage-events',
321320
TIMELINE_DEBUG_MODE = 'timeline-debug-mode',
322321
TIMELINE_ENHANCED_TRACES = 'timeline-enhanced-traces',

front_end/core/sdk/AutofillModel.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import * as Root from '../../core/root/root.js';
65
import * as Protocol from '../../generated/protocol.js';
76
import {createTarget} from '../../testing/EnvironmentHelpers.js';
87
import {describeWithMockConnection} from '../../testing/MockConnection.js';
@@ -12,7 +11,6 @@ import * as SDK from './sdk.js';
1211

1312
describeWithMockConnection('AutofillModel', () => {
1413
beforeEach(() => {
15-
Root.Runtime.experiments.enableForTest(Root.Runtime.ExperimentName.AUTOFILL_VIEW);
1614
Common.Settings.Settings.instance().createLocalSetting('show-test-addresses-in-autofill-menu-on-event', true);
1715
});
1816

front_end/core/sdk/AutofillModel.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// found in the LICENSE file.
44

55
import * as Common from '../../core/common/common.js';
6-
import * as Root from '../../core/root/root.js';
76
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
87
import type * as Protocol from '../../generated/protocol.js';
98
import * as Host from '../host/host.js';
@@ -142,8 +141,7 @@ export class AutofillModel extends SDKModel<EventTypes> implements ProtocolProxy
142141
}
143142

144143
enable(): void {
145-
if (!Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.AUTOFILL_VIEW) || this.#enabled ||
146-
Host.InspectorFrontendHost.isUnderTest()) {
144+
if (this.#enabled || Host.InspectorFrontendHost.isUnderTest()) {
147145
return;
148146
}
149147
void this.agent.invoke_enable();

front_end/entrypoints/main/MainImpl.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,6 @@ export class MainImpl {
356356
'https://crbug.com/1500573',
357357
);
358358

359-
Root.Runtime.experiments.register(
360-
Root.Runtime.ExperimentName.AUTOFILL_VIEW,
361-
'Autofill panel',
362-
false,
363-
'https://goo.gle/devtools-autofill-panel',
364-
'https://crbug.com/329106326',
365-
);
366-
367359
Root.Runtime.experiments.register(
368360
Root.Runtime.ExperimentName.TIMELINE_SHOW_POST_MESSAGE_EVENTS,
369361
'Performance panel: show postMessage dispatch and handling flows',
@@ -385,7 +377,6 @@ export class MainImpl {
385377
);
386378

387379
Root.Runtime.experiments.enableExperimentsByDefault([
388-
Root.Runtime.ExperimentName.AUTOFILL_VIEW,
389380
Root.Runtime.ExperimentName.NETWORK_PANEL_FILTER_BAR_REDESIGN,
390381
Root.Runtime.ExperimentName.TIMELINE_ALTERNATIVE_NAVIGATION,
391382
Root.Runtime.ExperimentName.TIMELINE_DIM_UNRELATED_EVENTS,

front_end/models/autofill_manager/AutofillManager.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import * as Root from '../../core/root/root.js';
65
import * as SDK from '../../core/sdk/sdk.js';
76
import * as Protocol from '../../generated/protocol.js';
87
import {createTarget} from '../../testing/EnvironmentHelpers.js';
@@ -22,7 +21,6 @@ describeWithMockConnection('AutofillManager', () => {
2221
model = target.model(SDK.AutofillModel.AutofillModel)!;
2322
showViewStub = sinon.stub(UI.ViewManager.ViewManager.instance(), 'showView').resolves();
2423
autofillManager = AutofillManager.AutofillManager.AutofillManager.instance({forceNew: true});
25-
Root.Runtime.experiments.enableForTest(Root.Runtime.ExperimentName.AUTOFILL_VIEW);
2624
});
2725

2826
afterEach(() => {

front_end/models/autofill_manager/AutofillManager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import * as Common from '../../core/common/common.js';
66
import * as Host from '../../core/host/host.js';
77
import * as Platform from '../../core/platform/platform.js';
8-
import * as Root from '../../core/root/root.js';
98
import * as SDK from '../../core/sdk/sdk.js';
109
import type * as Protocol from '../../generated/protocol.js';
1110
import * as UI from '../../ui/legacy/legacy.js';
@@ -44,8 +43,7 @@ export class AutofillManager extends Common.ObjectWrapper.ObjectWrapper<EventTyp
4443

4544
async #addressFormFilled({data}: Common.EventTarget.EventTargetEvent<
4645
SDK.AutofillModel.EventTypes[SDK.AutofillModel.Events.ADDRESS_FORM_FILLED]>): Promise<void> {
47-
if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.AUTOFILL_VIEW) &&
48-
this.#autoOpenViewSetting.get()) {
46+
if (this.#autoOpenViewSetting.get()) {
4947
await UI.ViewManager.ViewManager.instance().showView('autofill-view');
5048
Host.userMetrics.actionTaken(Host.UserMetrics.Action.AutofillReceivedAndTabAutoOpened);
5149
} else {

front_end/panels/autofill/AutofillView.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ describeWithMockConnection('AutofillView', () => {
9999
const maybeAutofillModel = target.model(SDK.AutofillModel.AutofillModel);
100100
assert.exists(maybeAutofillModel);
101101
autofillModel = maybeAutofillModel;
102-
Root.Runtime.experiments.enableForTest(Root.Runtime.ExperimentName.AUTOFILL_VIEW);
103102
showViewStub = sinon.stub(UI.ViewManager.ViewManager.instance(), 'showView').resolves();
104103
AutofillManager.AutofillManager.AutofillManager.instance({forceNew: true});
105104
});

front_end/panels/autofill/autofill-meta.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// found in the LICENSE file.
44

55
import * as i18n from '../../core/i18n/i18n.js';
6-
import * as Root from '../../core/root/root.js';
76
import * as LegacyWrapper from '../../ui/components/legacy_wrapper/legacy_wrapper.js';
87
import * as UI from '../../ui/legacy/legacy.js';
98

@@ -32,7 +31,6 @@ async function loadAutofillModule(): Promise<typeof Autofill> {
3231
}
3332

3433
UI.ViewManager.registerViewExtension({
35-
experiment: Root.Runtime.ExperimentName.AUTOFILL_VIEW,
3634
location: UI.ViewManager.ViewLocationValues.DRAWER_VIEW,
3735
id: 'autofill-view',
3836
title: i18nLazyString(UIStrings.autofill),

front_end/testing/EnvironmentHelpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ const REGISTERED_EXPERIMENTS = [
122122
Root.Runtime.ExperimentName.USE_SOURCE_MAP_SCOPES,
123123
'font-editor',
124124
Root.Runtime.ExperimentName.NETWORK_PANEL_FILTER_BAR_REDESIGN,
125-
Root.Runtime.ExperimentName.AUTOFILL_VIEW,
126125
Root.Runtime.ExperimentName.TIMELINE_DEBUG_MODE,
127126
Root.Runtime.ExperimentName.FULL_ACCESSIBILITY_TREE,
128127
Root.Runtime.ExperimentName.TIMELINE_SHOW_POST_MESSAGE_EVENTS,

0 commit comments

Comments
 (0)