You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cleanup] Move the host configuration to Root.Runtime.hostConfig.
Ideally the host configuration would live in `core/host`, but due to the
current setup, this isn't possible. However it also doesn't make sense
to bolt it into `Settings`, since this has nothing to do with settings.
Rather, it makes sense to keep it together with the type definitions as
part of `core/root`. This also simplifies the test handling and makes it
more robust.
Fixed: 396033932
Change-Id: I8f00fc84f62b180ede4407741d261544a13218da
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6257569
Reviewed-by: Alex Rudenko <[email protected]>
Commit-Queue: Benedikt Meurer <[email protected]>
Auto-Submit: Benedikt Meurer <[email protected]>
Commit-Queue: Alex Rudenko <[email protected]>
### In DevTools, use the new property added to HostConfig
133
133
134
-
* Update the type definition in [`Runtime.ts`](https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/core/root/Runtime.ts;l=326;drc=a1e6997df9503f1c29f84e7ffebcdadbaa91ed71).
135
-
* Update the dummy value in [`InspectorFrontendHost.ts`](https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/core/host/InspectorFrontendHost.ts;l=401;drc=197a33e1793066c8d32b8670e06cd55364121537).
136
-
* For tests, update the stub in [`EnvironmentHelpers.ts`](https://crsrc.org/c/third_party/devtools-frontend/src/front_end/testing/EnvironmentHelpers.ts;l=494;drc=f1699bd12f8a486c749a849561391d890208f613).
137
-
* Access the host config via `Common.Settings.Settings.instance().getHostConfig()`.
134
+
* Update the type definition in [`Runtime.ts`](https://crsrc.org/c/third_party/devtools-frontend/src/front_end/core/root/Runtime.ts).
135
+
* Update the dummy value returned by `getHostConfig` in [`InspectorFrontendHost.ts`](https://crsrc.org/c/third_party/devtools-frontend/src/front_end/core/host/InspectorFrontendHost.ts).
136
+
* For tests, update the `HOST_CONFIG` in [`EnvironmentHelpers.ts`](https://crsrc.org/c/third_party/devtools-frontend/src/front_end/testing/EnvironmentHelpers.ts).
137
+
* Access the host config via `Root.Runtime.hostConfig`.
138
138
139
139
Please refer to this [example CL](https://crrev.com/c/5626314).
0 commit comments