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

Unified Diff: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.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_app.cc
diff --git a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.cc b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.cc
index e936ae5e58d6839256395ee5f57cbe06ccb48a69..a67a566a5d6283ba076a3eb666de820d00e52ed0 100644
--- a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.cc
+++ b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.cc
@@ -4,7 +4,7 @@
#include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.h"
-#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/service_provider_impl.h"
#include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_meta_factory_impl.h"
namespace mojo {
@@ -13,14 +13,9 @@ AuthenticatingURLLoaderInterceptorApp::AuthenticatingURLLoaderInterceptorApp() {
}
AuthenticatingURLLoaderInterceptorApp::
- ~AuthenticatingURLLoaderInterceptorApp() {
-}
-
-void AuthenticatingURLLoaderInterceptorApp::Initialize(ApplicationImpl* app) {
- app_ = app;
-}
+ ~AuthenticatingURLLoaderInterceptorApp() {}
-bool AuthenticatingURLLoaderInterceptorApp::ConfigureIncomingConnection(
+bool AuthenticatingURLLoaderInterceptorApp::OnAcceptConnection(
ServiceProviderImpl* service_provider_impl) {
service_provider_impl->AddService<
AuthenticatingURLLoaderInterceptorMetaFactory>([this](
@@ -31,8 +26,8 @@ bool AuthenticatingURLLoaderInterceptorApp::ConfigureIncomingConnection(
if (app_url.is_valid()) {
app_origin = app_url.GetOrigin();
}
- new AuthenticatingURLLoaderInterceptorMetaFactoryImpl(request.Pass(), app_,
- &tokens_[app_origin]);
+ new AuthenticatingURLLoaderInterceptorMetaFactoryImpl(
+ request.Pass(), shell(), &tokens_[app_origin]);
});
return true;
}

Powered by Google App Engine
This is Rietveld 408576698