Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1485)

Unified Diff: content/browser/service_worker/service_worker_fetch_dispatcher.cc

Issue 2695333002: Mojo C++ bindings: remove usage of AssociatedGroup from content/ (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_fetch_dispatcher.cc
diff --git a/content/browser/service_worker/service_worker_fetch_dispatcher.cc b/content/browser/service_worker/service_worker_fetch_dispatcher.cc
index 84eeb7f097d87adc5704ac10077743fd308d1cc6..4782c8fd7b55666314660c347c5412ba01f2a271 100644
--- a/content/browser/service_worker/service_worker_fetch_dispatcher.cc
+++ b/content/browser/service_worker/service_worker_fetch_dispatcher.cc
@@ -181,9 +181,8 @@ class DelegatingURLLoaderClient final : public mojom::URLLoaderClient {
base::Bind(&NotifyNavigationPreloadCompletedOnUI, completion_status));
}
- void Bind(mojom::URLLoaderClientAssociatedPtrInfo* ptr_info,
- mojo::AssociatedGroup* associated_group) {
- binding_.Bind(ptr_info, associated_group);
+ void Bind(mojom::URLLoaderClientAssociatedPtrInfo* ptr_info) {
+ binding_.Bind(ptr_info);
}
private:
@@ -586,13 +585,11 @@ bool ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(
auto url_loader_client = base::MakeUnique<DelegatingURLLoaderClient>(
std::move(url_loader_client_ptr), std::move(on_response), request);
mojom::URLLoaderClientAssociatedPtrInfo url_loader_client_associated_ptr_info;
- url_loader_client->Bind(&url_loader_client_associated_ptr_info,
- url_loader_factory.associated_group());
+ url_loader_client->Bind(&url_loader_client_associated_ptr_info);
mojom::URLLoaderAssociatedPtr url_loader_associated_ptr;
url_loader_factory->CreateLoaderAndStart(
- mojo::MakeRequest(&url_loader_associated_ptr,
- url_loader_factory.associated_group()),
+ mojo::MakeRequest(&url_loader_associated_ptr),
original_info->GetRouteID(), request_id, request,
std::move(url_loader_client_associated_ptr_info));
« no previous file with comments | « content/browser/loader/url_loader_factory_impl_unittest.cc ('k') | content/child/indexed_db/webidbcursor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698