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

Unified Diff: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc

Issue 2015643002: Add (optional) options to Run[Main]Application(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 7 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 38ac0e92fe4c997e4f14cc54edbeeee447606e5c..61f2e0a21a2694c77a4c9d13a2e1a806e7cc9412 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
@@ -9,7 +9,6 @@
#include "base/bind.h"
#include "base/logging.h"
#include "base/stl_util.h"
-#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/public/cpp/application/connect.h"
#include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor.h"
@@ -20,15 +19,13 @@ AuthenticatingURLLoaderInterceptorFactory::
mojo::InterfaceRequest<URLLoaderInterceptorFactory> request,
mojo::InterfaceHandle<authentication::AuthenticationService>
authentication_service,
- mojo::ApplicationImpl* app,
+ mojo::Shell* shell,
std::map<GURL, std::string>* cached_tokens)
: binding_(this, request.Pass()),
authentication_service_(authentication::AuthenticationServicePtr::Create(
std::move(authentication_service))),
- app_(app),
cached_tokens_(cached_tokens) {
- ConnectToService(app_->shell(), "mojo:network_service",
- GetProxy(&network_service_));
+ ConnectToService(shell, "mojo:network_service", GetProxy(&network_service_));
authentication_service_.set_connection_error_handler(
[this]() { ClearAuthenticationService(); });
}

Powered by Google App Engine
This is Rietveld 408576698