forked from ChromeDevTools/devtools-frontend
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only prompt preserve-log settings for Fusebox targets
- Loading branch information
1 parent
6f29504
commit 4161fa2
Showing
6 changed files
with
53 additions
and
38 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (c) Meta Platforms, Inc. and affiliates. | ||
// Copyright 2024 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import * as Host from '../host/host.js'; | ||
|
||
import {SDKModel} from './SDKModel.js'; | ||
import {type Target} from './Target.js'; | ||
|
||
export class FuseboxClientMetadataModel extends SDKModel<void> { | ||
constructor(target: Target) { | ||
super(target); | ||
Host.rnPerfMetrics.fuseboxSetClientMetadataStarted(); | ||
target.fuseboxClientAgent() | ||
.invoke_setClientMetadata() | ||
.then(result => { | ||
const maybeError = result.getError(); | ||
const success = !maybeError; | ||
Host.rnPerfMetrics.fuseboxSetClientMetadataFinished(success, maybeError); | ||
}) | ||
.catch(reason => { | ||
const success = false; | ||
Host.rnPerfMetrics.fuseboxSetClientMetadataFinished(success, reason); | ||
}); | ||
} | ||
} |
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
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
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
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