Cannot fetch OptimizationGuide model (at least safebrowsing) with Chromium

10 views
Skip to first unread message

The ZZ

unread,
Sep 22, 2025, 12:01:42 PM (4 days ago) Sep 22
to Chromium-dev
Hi.

I failed to fetch any optimization guide model with my homebrewed Chromium.

void PredictionModelFetcherImpl::HandleResponse(...) says:

- get_models_response_data is empty
- response_code is HTTP_STATUS_ENUM_VALUE(FORBIDDEN, 403, "Forbidden")
- net_status is `NET_ERROR(HTTP_RESPONSE_CODE_FAILURE, -379)`

I run my browser with 
run.bat:
----------------------------------------------------------------------------
set GOOGLE_API_KEY=AI....dE
set GOOGLE_DEFAULT_CLIENT_ID=28......ja.apps.googleusercontent.com
set GOOGLE_DEFAULT_CLIENT_SECRET=G.....I7

chrome.exe --enable-logging --user-data-dir=SOME_DIR --vmodule=client_side_detection_host=2 --csd-debug-feature-directory=C:\CSD --safe-browsing-skip-high-confidence-allowlist --safe-browsing-skip-csd-allowlist
----------------------------------------------------------------------------

The browser itself was built by me from the latest sources with args.gn:
-------------------------------------
is_debug = false
is_component_build = true
symbol_level = 2
v8_symbol_level = 0
blink_symbol_level = 0
-------------------------------------

The enabled APIs are (as you can see SB has been used for few times):
Name       Requests Errors (%)    Latency, median (ms)     Latency, 95% (ms)
Safe Browsing API 3 0 12 15
Analytics Hub API
BigQuery API
BigQuery Connection API
BigQuery Data Policy API
BigQuery Migration API
BigQuery Reservation API
BigQuery Storage API
Cloud Dataplex API
Cloud Datastore API
Cloud Logging API
Cloud Monitoring API
Cloud SQL
Cloud Storage
Cloud Storage API
Cloud Trace API
Dataform API
Google Cloud APIs
Google Cloud Storage JSON API
Service Management API
Service Usage API


Did I forgot something to enable in API?
Can you please help me. 
Thanks.

Zinovy.
Reply all
Reply to author
Forward
0 new messages