Index: chrome/service/service_ipc_server.cc |
diff --git a/chrome/service/service_ipc_server.cc b/chrome/service/service_ipc_server.cc |
index b3582a2e09d19af6d0f83d319f05dc9e524c91df..01b5deba3df3efee87a6dccc1d654adb40d4bdef 100644 |
--- a/chrome/service/service_ipc_server.cc |
+++ b/chrome/service/service_ipc_server.cc |
@@ -109,6 +109,10 @@ bool ServiceIPCServer::OnMessageReceived(const IPC::Message& msg) { |
OnGetCloudPrintProxyInfo) |
IPC_MESSAGE_HANDLER(ServiceMsg_Shutdown, OnShutdown); |
IPC_MESSAGE_HANDLER(ServiceMsg_UpdateAvailable, OnUpdateAvailable); |
+ IPC_MESSAGE_HANDLER(ServiceMsg_EnableVirtualDriver, |
+ OnEnableVirtualDriver); |
+ IPC_MESSAGE_HANDLER(ServiceMsg_DisableVirtualDriver, |
+ OnDisableVirtualDriver); |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -145,3 +149,12 @@ void ServiceIPCServer::OnShutdown() { |
void ServiceIPCServer::OnUpdateAvailable() { |
g_service_process->SetUpdateAvailable(); |
} |
+ |
+void ServiceIPCServer::OnEnableVirtualDriver() { |
+ g_service_process->EnableVirtualPrintDriver(); |
+} |
+ |
+void ServiceIPCServer::OnDisableVirtualDriver() { |
+ g_service_process->DisableVirtualPrintDriver(); |
+} |
+ |