Disable authentication in application_manager for FNL
FNL has not supported authetication, yet.
Change-Id: Ica290d45aa60d2a504e831f781a0f8dab4bc6b85
BUG=
R=viettrungluu@chromium.org
Review URL: https://codereview.chromium.org/1490963002 .
diff --git a/shell/application_manager/BUILD.gn b/shell/application_manager/BUILD.gn
index dac121c..88f681f 100644
--- a/shell/application_manager/BUILD.gn
+++ b/shell/application_manager/BUILD.gn
@@ -29,6 +29,11 @@
"shell_impl.h",
]
+ # TODO(toshik): FNL hasn't supported authentication, yet
+ if (is_fnl) {
+ defines = [ "NO_AUTHENTICATION" ]
+ }
+
public_deps = [
"//base",
"//mojo/converters/url",
diff --git a/shell/application_manager/application_manager.cc b/shell/application_manager/application_manager.cc
index c87f511..77d657d 100644
--- a/shell/application_manager/application_manager.cc
+++ b/shell/application_manager/application_manager.cc
@@ -215,6 +215,8 @@
"/authenticating_url_loader_interceptor.mojo", true)) {
network_service = network_service_.get();
} else if (!initialized_authentication_interceptor_) {
+#ifndef NO_AUTHENTICATION
+ // TODO(toshik): FNL hasn't supported authentication, yet
authentication::AuthenticationServicePtr authentication_service;
ConnectToService(GURL("mojo:authentication"), &authentication_service);
mojo::AuthenticatingURLLoaderInterceptorMetaFactoryPtr
@@ -226,6 +228,7 @@
GetProxy(&interceptor_factory), authentication_service.Pass());
authenticating_network_service_->RegisterURLLoaderInterceptor(
interceptor_factory.Pass());
+#endif
initialized_authentication_interceptor_ = true;
}