(
State(state): State<AppState>,
Path(udid): Path<String>,
)
| 3189 | } |
| 3190 | |
| 3191 | async 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 | |
| 3204 | fn chrome_asset_headers() -> HeaderMap { |
| 3205 | let mut headers = HeaderMap::new(); |
nothing calls this directly
no test coverage detected