| Code-Review | +1 |
base::RunLoop run_loop;
net::CookieList cookies;
cookie_manager->GetAllCookies(
base::BindLambdaForTesting([&](const net::CookieList& result) {
cookies = result;
run_loop.Quit();
}));
run_loop.Run();This can be simplified with `base::test::TestFuture`:
```suggestion
base::test::TestFuture<net::CookieList> future;
cookie_manager->GetAllCookies(future.GetCallback<const net::CookieList&>());
net::CookeList cookies = future.Get();
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
base::RunLoop run_loop;
net::CookieList cookies;
cookie_manager->GetAllCookies(
base::BindLambdaForTesting([&](const net::CookieList& result) {
cookies = result;
run_loop.Quit();
}));
run_loop.Run();This can be simplified with `base::test::TestFuture`:
```suggestion
base::test::TestFuture<net::CookieList> future;
cookie_manager->GetAllCookies(future.GetCallback<const net::CookieList&>());
net::CookeList cookies = future.Get();
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: d...@chromium.org
📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).
IPC reviewer(s): d...@chromium.org
Reviewer source(s):
d...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Delay binding NetworkContext when cookie manager is pending.
In WebViews there is a provisional CookieManager that is used before
the chromium WebView binary is loaded. This allows apps to manipulate
the cookie store without paying the performance cost of loading the
entire binary.
When transitioning from the provisional cookie manager to the real
cookie manager, however, it's necessary to wait for any operations to
complete before flushing the database to disk. Previously this
waiting was done by a synchronous block on the main thread. We would
like to switch to a non-blocking approach where we defer creating
the NetworkContext until the cookie store is ready.
This CL adds a CookieStoreReadyCallback interface to
NetworkContextParams. When provided,
NetworkService::CreateNetworkContext() defers creating the
NetworkContext object until OnCookieStoreReady() is signaled. Mojo
messages sent to the NetworkContext remote are naturally buffered in the
pipe until the context is created. This avoids the need to audit
individual NetworkContext methods for cookie dependencies.
The next CL in the stack adds WebView code that uses this support.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |