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

Unified Diff: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_meta_factory_impl.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_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 15b4541a8e0f3377b43c9138388e16162449a7a9..be5c5de41aeaf75ca3873ff4645da418e2191629 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
@@ -6,7 +6,6 @@
#include <utility>
-#include "mojo/public/cpp/application/application_impl.h"
#include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.h"
namespace mojo {
@@ -15,14 +14,14 @@ AuthenticatingURLLoaderInterceptorMetaFactoryImpl::
AuthenticatingURLLoaderInterceptorMetaFactoryImpl(
mojo::InterfaceRequest<AuthenticatingURLLoaderInterceptorMetaFactory>
request,
- mojo::ApplicationImpl* app,
+ mojo::Shell* shell,
std::map<GURL, std::string>* cached_tokens)
- : binding_(this, request.Pass()), app_(app), cached_tokens_(cached_tokens) {
-}
+ : binding_(this, request.Pass()),
+ shell_(shell),
+ cached_tokens_(cached_tokens) {}
AuthenticatingURLLoaderInterceptorMetaFactoryImpl::
- ~AuthenticatingURLLoaderInterceptorMetaFactoryImpl() {
-}
+ ~AuthenticatingURLLoaderInterceptorMetaFactoryImpl() {}
void AuthenticatingURLLoaderInterceptorMetaFactoryImpl::
CreateURLLoaderInterceptorFactory(
@@ -30,7 +29,7 @@ void AuthenticatingURLLoaderInterceptorMetaFactoryImpl::
InterfaceHandle<authentication::AuthenticationService>
authentication_service) {
new AuthenticatingURLLoaderInterceptorFactory(
- factory_request.Pass(), std::move(authentication_service), app_,
+ factory_request.Pass(), std::move(authentication_service), shell_,
cached_tokens_);
}

Powered by Google App Engine
This is Rietveld 408576698