diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-10 18:19:32 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-10 18:19:32 +0000 |
commit | bb76fd4253554e9e622f85aa68bbf6a092cb1481 (patch) | |
tree | 39ad412ccd8c0a9d4099e7af9847586420bc1db1 /chrome/service/service_ipc_server.cc | |
parent | 13bbbd19b7e90b1b4c3449f8945aab132eec8767 (diff) | |
download | chromium_src-bb76fd4253554e9e622f85aa68bbf6a092cb1481.zip chromium_src-bb76fd4253554e9e622f85aa68bbf6a092cb1481.tar.gz chromium_src-bb76fd4253554e9e622f85aa68bbf6a092cb1481.tar.bz2 |
Remove the Remoting Host component from Chrome.
* Update the Remoting feature flag description.
* Fix license headers.
* Remove files from gyp definitions.
* Remove Chromoting trigger for Service Process launch on browser startup, and Chromoting setup HTML resources.
* Remove Chromoting Host registration components from Browser.
* Remove resources for Chromoting Host options UI.
* Remove Service Process control APIs for Chromoting Host.
* Remove Chromoting Host prefs from Browser UI.
* Remove WebUI for Chromoting Host.
* Remove WebUI options for Chromoting Host.
* Remove Chromoting Host policy options, and don't warn if Chromoting is entirely disabled by policy, since there are no user-visible settings for it anyway.
* Remove Chromoting Host preference names, service IPCs and URL constants.
* Remove Chromoting Host from Service Process.
* Remove remoting strings, locale settings and setup "Id".
BUG=
TEST=Run Service Process from a profile in which Chromoting Host had previously been configured, and Cloud Print NOT configured. Chromoting Host should not be accessible, and Service Process should quit after about a minute.
Review URL: http://codereview.chromium.org/6955010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/service_ipc_server.cc')
-rw-r--r-- | chrome/service/service_ipc_server.cc | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/chrome/service/service_ipc_server.cc b/chrome/service/service_ipc_server.cc index ffab169..493831e 100644 --- a/chrome/service/service_ipc_server.cc +++ b/chrome/service/service_ipc_server.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -107,16 +107,6 @@ bool ServiceIPCServer::OnMessageReceived(const IPC::Message& msg) { OnDisableCloudPrintProxy) IPC_MESSAGE_HANDLER(ServiceMsg_IsCloudPrintProxyEnabled, OnIsCloudPrintProxyEnabled) -#if defined(ENABLE_REMOTING) - IPC_MESSAGE_HANDLER(ServiceMsg_SetRemotingHostCredentials, - OnSetRemotingHostCredentials) - IPC_MESSAGE_HANDLER(ServiceMsg_EnableRemotingHost, - OnEnableRemotingHost) - IPC_MESSAGE_HANDLER(ServiceMsg_DisableRemotingHost, - OnDisableRemotingHost) - IPC_MESSAGE_HANDLER(ServiceMsg_GetRemotingHostInfo, - OnGetRemotingHostInfo) -#endif // defined(ENABLE_REMOTING) IPC_MESSAGE_HANDLER(ServiceMsg_Shutdown, OnShutdown); IPC_MESSAGE_HANDLER(ServiceMsg_UpdateAvailable, OnUpdateAvailable); IPC_MESSAGE_UNHANDLED(handled = false) @@ -141,35 +131,6 @@ void ServiceIPCServer::OnIsCloudPrintProxyEnabled() { email)); } -#if defined(ENABLE_REMOTING) -void ServiceIPCServer::OnSetRemotingHostCredentials( - const std::string& login, - const std::string& auth_token) { - g_service_process->remoting_host_manager()->SetCredentials( - login, auth_token); -} - -void ServiceIPCServer::OnEnableRemotingHost() { - g_service_process->remoting_host_manager()->Enable(); - SendRemotingHostInfo(); -} - -void ServiceIPCServer::OnDisableRemotingHost() { - g_service_process->remoting_host_manager()->Disable(); - SendRemotingHostInfo(); -} - -void ServiceIPCServer::OnGetRemotingHostInfo() { - SendRemotingHostInfo(); -} - -void ServiceIPCServer::SendRemotingHostInfo() { - remoting::ChromotingHostInfo host_info; - g_service_process->remoting_host_manager()->GetHostInfo(&host_info); - channel_->Send(new ServiceHostMsg_RemotingHost_HostInfo(host_info)); -} -#endif // defined(ENABLE_REMOTING) - void ServiceIPCServer::OnDisableCloudPrintProxy() { g_service_process->GetCloudPrintProxy()->DisableForUser(); } |