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

Unified Diff: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.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_factory.cc
diff --git a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc
index 58a88496d3b26a2643dcd2433fb0420d8a45fed3..825855c59a64405b1d61efa00355b1d86e91663f 100644
--- a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc
+++ b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc
@@ -4,6 +4,8 @@
#include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/logging.h"
#include "base/stl_util.h"
@@ -15,11 +17,13 @@ namespace mojo {
AuthenticatingURLLoaderInterceptorFactory::
AuthenticatingURLLoaderInterceptorFactory(
mojo::InterfaceRequest<URLLoaderInterceptorFactory> request,
- authentication::AuthenticationServicePtr authentication_service,
+ mojo::InterfaceHandle<authentication::AuthenticationService>
+ authentication_service,
mojo::ApplicationImpl* app,
std::map<GURL, std::string>* cached_tokens)
: binding_(this, request.Pass()),
- authentication_service_(authentication_service.Pass()),
+ authentication_service_(authentication::AuthenticationServicePtr::Create(
+ std::move(authentication_service))),
app_(app),
cached_tokens_(cached_tokens) {
app_->ConnectToService("mojo:network_service", &network_service_);

Powered by Google App Engine
This is Rietveld 408576698