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

Unified Diff: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_meta_factory_impl.cc

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 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: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_meta_factory_impl.cc
diff --git a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_meta_factory_impl.cc b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_meta_factory_impl.cc
index f654821d87649b69ebb931572353bc9f514797a8..15b4541a8e0f3377b43c9138388e16162449a7a9 100644
--- a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_meta_factory_impl.cc
+++ b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_meta_factory_impl.cc
@@ -4,6 +4,8 @@
#include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_meta_factory_impl.h"
+#include <utility>
+
#include "mojo/public/cpp/application/application_impl.h"
#include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.h"
@@ -25,10 +27,11 @@ AuthenticatingURLLoaderInterceptorMetaFactoryImpl::
void AuthenticatingURLLoaderInterceptorMetaFactoryImpl::
CreateURLLoaderInterceptorFactory(
mojo::InterfaceRequest<URLLoaderInterceptorFactory> factory_request,
- authentication::AuthenticationServicePtr authentication_service) {
- new AuthenticatingURLLoaderInterceptorFactory(factory_request.Pass(),
- authentication_service.Pass(),
- app_, cached_tokens_);
+ InterfaceHandle<authentication::AuthenticationService>
+ authentication_service) {
+ new AuthenticatingURLLoaderInterceptorFactory(
+ factory_request.Pass(), std::move(authentication_service), app_,
+ cached_tokens_);
}
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698