MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / chrome_profile

Function chrome_profile

packages/server/src/api/routes.rs:3191–3202  ·  view source on GitHub ↗
(
    State(state): State<AppState>,
    Path(udid): Path<String>,
)

Source from the content-addressed store, hash-verified

3189}
3190
3191async fn chrome_profile(
3192 State(state): State<AppState>,
3193 Path(udid): Path<String>,
3194) -> Result<Json<Value>, AppError> {
3195 if android::is_android_id(&udid) {
3196 let profile =
3197 run_android_action(state, move |android| android.chrome_profile(&udid)).await?;
3198 return Ok(json(profile));
3199 }
3200 let profile = run_bridge_action(state, move |bridge| bridge.chrome_profile(&udid)).await?;
3201 Ok(json(json_value!(profile)))
3202}
3203
3204fn chrome_asset_headers() -> HeaderMap {
3205 let mut headers = HeaderMap::new();

Callers

nothing calls this directly

Calls 5

is_android_idFunction · 0.85
run_android_actionFunction · 0.85
jsonFunction · 0.85
run_bridge_actionFunction · 0.85
chrome_profileMethod · 0.45

Tested by

no test coverage detected