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

Unified Diff: services/authenticating_url_loader/authenticating_url_loader_app.cc

Issue 1155283003: Change AuthenticatingURLLoader to be a URLLoaderInterceptor (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Address review Created 5 years, 6 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/authenticating_url_loader_app.cc
diff --git a/services/authenticating_url_loader/authenticating_url_loader_app.cc b/services/authenticating_url_loader/authenticating_url_loader_app.cc
index e716b3e7985ebf5dc36226075b19ed4ee1a39c10..9bb8eabbe079fbfc78a1f258ce383d05dafbbf88 100644
--- a/services/authenticating_url_loader/authenticating_url_loader_app.cc
+++ b/services/authenticating_url_loader/authenticating_url_loader_app.cc
@@ -4,6 +4,8 @@
#include "services/authenticating_url_loader/authenticating_url_loader_app.h"
+#include "mojo/application/application_runner_chromium.h"
+#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_impl.h"
#include "services/authenticating_url_loader/authenticating_url_loader_factory_impl.h"
@@ -38,3 +40,8 @@ void AuthenticatingURLLoaderApp::Create(
}
} // namespace mojo
+
+MojoResult MojoMain(MojoHandle application_request) {
+ mojo::ApplicationRunnerChromium runner(new mojo::AuthenticatingURLLoaderApp);
+ return runner.Run(application_request);
+}

Powered by Google App Engine
This is Rietveld 408576698