Skip to content

Commit c79c882

Browse files
bmeurerDevtools-frontend LUCI CQ
authored andcommitted
Add host config for DevToolsWellKnown.
Bug: 395037775 Change-Id: Ie7850f59a3a633c5d04e77c8824485d4735650a8 Doc: https://goo.gle/devtools-json-design Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6244938 Commit-Queue: Alex Rudenko <[email protected]> Commit-Queue: Benedikt Meurer <[email protected]> Reviewed-by: Alex Rudenko <[email protected]> Auto-Submit: Benedikt Meurer <[email protected]>
1 parent 08b302e commit c79c882

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

front_end/core/host/InspectorFrontendHost.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
430430
enabled: true,
431431
testing: false,
432432
},
433+
devToolsWellKnown: {
434+
enabled: true,
435+
},
433436
devToolsPrivacyUI: {
434437
enabled: false,
435438
},

front_end/core/root/Runtime.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ export interface HostConfigVeLogging {
389389
testing: boolean;
390390
}
391391

392+
export interface HostConfigWellKnown {
393+
enabled: boolean;
394+
}
395+
392396
export interface HostConfigPrivacyUI {
393397
enabled: boolean;
394398
}
@@ -425,6 +429,7 @@ export type HostConfig = Platform.TypeScriptUtilities.RecursivePartial<{
425429
devToolsAiAssistancePerformanceAgent: HostConfigAiAssistancePerformanceAgent,
426430
devToolsImprovedWorkspaces: HostConfigImprovedWorkspaces,
427431
devToolsVeLogging: HostConfigVeLogging,
432+
devToolsWellKnown: HostConfigWellKnown,
428433
devToolsPrivacyUI: HostConfigPrivacyUI,
429434
/**
430435
* OffTheRecord here indicates that the user's profile is either incognito,

front_end/testing/EnvironmentHelpers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,16 @@ export function getGetHostConfigStub(config: Root.Runtime.HostConfig): sinon.Sin
551551
} as Root.Runtime.HostConfigAiAssistancePerformanceAgent,
552552
devToolsImprovedWorkspaces: {
553553
enabled: false,
554+
...config.devToolsImprovedWorkspaces,
554555
},
555556
devToolsVeLogging: {
556557
enabled: true,
557558
testing: false,
558559
},
560+
devToolsWellKnown: {
561+
enabled: false,
562+
...config.devToolsWellKnown,
563+
},
559564
devToolsPrivacyUI: {
560565
enabled: false,
561566
...config.devToolsPrivacyUI,

0 commit comments

Comments
 (0)