diff options
author | scottbyer@chromium.org <scottbyer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-27 18:38:25 +0000 |
---|---|---|
committer | scottbyer@chromium.org <scottbyer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-27 18:38:25 +0000 |
commit | 0233759c8f0a17a73899bfed59ae21a777a3d637 (patch) | |
tree | 80d589261b7970c8980eb741fb69430a82dce892 /chrome/service/service_ipc_server.cc | |
parent | c5a272dbd00c74dffe922523811a4ecbcd7f882b (diff) | |
download | chromium_src-0233759c8f0a17a73899bfed59ae21a777a3d637.zip chromium_src-0233759c8f0a17a73899bfed59ae21a777a3d637.tar.gz chromium_src-0233759c8f0a17a73899bfed59ae21a777a3d637.tar.bz2 |
Cloud print proxy management UI.
Based in the Under-the-Hood section of options, this UI allows mere mortals to turn on and off the cloud print proxy. Currently working on Windows only, behind a flag.
BUG=none
TEST=Open up the options, turn CPP on and off.
Review URL: http://codereview.chromium.org/3450021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/service_ipc_server.cc')
-rw-r--r-- | chrome/service/service_ipc_server.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/service/service_ipc_server.cc b/chrome/service/service_ipc_server.cc index 5663f49..958eade 100644 --- a/chrome/service/service_ipc_server.cc +++ b/chrome/service/service_ipc_server.cc @@ -93,9 +93,11 @@ void ServiceIPCServer::OnEnableCloudPrintProxyWithTokens( NOTIMPLEMENTED(); } -void ServiceIPCServer::OnIsCloudPrintProxyEnabled(bool* is_enabled, - std::string* email) { - *is_enabled = g_service_process->GetCloudPrintProxy()->IsEnabled(email); +void ServiceIPCServer::OnIsCloudPrintProxyEnabled() { + std::string email; + bool is_enabled = g_service_process->GetCloudPrintProxy()->IsEnabled(&email); + channel_->Send(new ServiceHostMsg_CloudPrintProxy_IsEnabled(is_enabled, + email)); } void ServiceIPCServer::OnEnableRemotingWithTokens( |