summaryrefslogtreecommitdiffstats
path: root/chrome/service/service_ipc_server.cc
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 23:08:29 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 23:08:29 +0000
commit448deffd5734b932904b3691d92ebd2a03204f5f (patch)
tree8809988a0ec214b9e5afb35273399387002bcb75 /chrome/service/service_ipc_server.cc
parent7fe972ec750ed840f3cbbe45c21045b0d96ca7d2 (diff)
downloadchromium_src-448deffd5734b932904b3691d92ebd2a03204f5f.zip
chromium_src-448deffd5734b932904b3691d92ebd2a03204f5f.tar.gz
chromium_src-448deffd5734b932904b3691d92ebd2a03204f5f.tar.bz2
Added a sync IPC method to check the enabled state of the cloud print proxy.
BUG=None TEST=None Review URL: http://codereview.chromium.org/3457003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/service_ipc_server.cc')
-rw-r--r--chrome/service/service_ipc_server.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/service/service_ipc_server.cc b/chrome/service/service_ipc_server.cc
index 1a698b4..c532414 100644
--- a/chrome/service/service_ipc_server.cc
+++ b/chrome/service/service_ipc_server.cc
@@ -68,6 +68,8 @@ void ServiceIPCServer::OnMessageReceived(const IPC::Message& msg) {
OnEnableRemotingWithTokens)
IPC_MESSAGE_HANDLER(ServiceMsg_DisableCloudPrintProxy,
OnDisableCloudPrintProxy)
+ IPC_MESSAGE_HANDLER(ServiceMsg_IsCloudPrintProxyEnabled,
+ OnIsCloudPrintProxyEnabled)
IPC_MESSAGE_HANDLER(ServiceMsg_Hello, OnHello);
IPC_MESSAGE_HANDLER(ServiceMsg_Shutdown, OnShutdown);
IPC_END_MESSAGE_MAP()
@@ -83,6 +85,11 @@ void ServiceIPCServer::OnEnableCloudPrintProxyWithTokens(
NOTIMPLEMENTED();
}
+void ServiceIPCServer::OnIsCloudPrintProxyEnabled(bool* is_enabled,
+ std::string* email) {
+ *is_enabled = g_service_process->GetCloudPrintProxy()->IsEnabled(email);
+}
+
void ServiceIPCServer::OnEnableRemotingWithTokens(
const std::string& login,
const std::string& remoting_token,