Commit 29f2955
committed
Fix dig_url_loader_factory for Chromium 149 API drift (dig:// content loader)
The chia:// content loader failed to compile on 149 — two API changes:
- base::Environment::GetVar changed bool GetVar(name, std::string* out) →
std::optional<std::string> GetVar(name). The 3 DigNodeConfigDir() sites
(DIG_NODE_CONFIG_DIR / LOCALAPPDATA / HOME) now take the optional return.
- network::SimpleURLLoader::DownloadToString's body callback param changed
std::unique_ptr<std::string> → std::optional<std::string>. The 2 callbacks
(OnHealthProbed / OnLocalNodeResponse) now take the optional (bodies already
used *body / body->empty(), which work on optional).
Verified: dig_url_loader_factory.obj compiles clean against 149. Captured into
windows-dig-browser-ux.patch (LF, no domain-sub artifacts, hunks intact).1 parent c1c7a25 commit 29f2955
1 file changed
Lines changed: 11 additions & 11 deletions
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1386 | 1386 | | |
1387 | 1387 | | |
1388 | 1388 | | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
1392 | 1392 | | |
1393 | 1393 | | |
1394 | | - | |
1395 | | - | |
1396 | | - | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
1400 | 1400 | | |
1401 | 1401 | | |
1402 | 1402 | | |
1403 | 1403 | | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
1407 | 1407 | | |
1408 | 1408 | | |
1409 | 1409 | | |
| |||
1703 | 1703 | | |
1704 | 1704 | | |
1705 | 1705 | | |
1706 | | - | |
| 1706 | + | |
1707 | 1707 | | |
1708 | 1708 | | |
1709 | 1709 | | |
| |||
1748 | 1748 | | |
1749 | 1749 | | |
1750 | 1750 | | |
1751 | | - | |
| 1751 | + | |
1752 | 1752 | | |
1753 | 1753 | | |
1754 | 1754 | | |
| |||
0 commit comments