Kaydet (Commit) 8adabe2e authored tarafından Andrzej J.R. Hunt's avatar Andrzej J.R. Hunt

Disable Remote unless in experimental mode.

Change-Id: I56263eeed7ce4376f6c4647efe699c2c6005f13d
üst e5c4127e
......@@ -10,6 +10,7 @@
#include <algorithm>
#include <vector>
#include "officecfg/Office/Common.hxx"
#include <comphelper/processfactory.hxx>
#include "sddll.hxx"
......@@ -161,9 +162,13 @@ void RemoteServer::setup()
void SdDLL::RegisterRemotes()
{
fprintf( stderr, "Register our remote control goodness\n" );
sd::RemoteServer::setup();
sd::DiscoveryService::setup();
// Disable unless in experimental mode for now
uno::Reference< uno::XComponentContext > xContext = comphelper::getProcessComponentContext();
if (!xContext.is() || !officecfg::Office::Common::Misc::ExperimentalMode::get(xContext))
return;
sd::RemoteServer::setup();
sd::DiscoveryService::setup();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment