From 3562f1b7d9d71ff68d4d0936112daa1ea1fa7268 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Fri, 11 Mar 2011 04:37:14 +0000 Subject: Coverity: Pass parameters by ref. CID=14063,14197,14317,14659,14898,14958,14983,15408,15410,15411 BUG=none TEST=none Review URL: http://codereview.chromium.org/6677010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77787 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/service/service_process_control.cc | 2 +- chrome/browser/service/service_process_control.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/service') diff --git a/chrome/browser/service/service_process_control.cc b/chrome/browser/service/service_process_control.cc index bc9f344..531a95f 100644 --- a/chrome/browser/service/service_process_control.cc +++ b/chrome/browser/service/service_process_control.cc @@ -240,7 +240,7 @@ void ServiceProcessControl::OnCloudPrintProxyIsEnabled(bool enabled, } void ServiceProcessControl::OnRemotingHostInfo( - remoting::ChromotingHostInfo host_info) { + const remoting::ChromotingHostInfo& host_info) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); for (std::set::iterator it = message_handlers_.begin(); it != message_handlers_.end(); ++it) { diff --git a/chrome/browser/service/service_process_control.h b/chrome/browser/service/service_process_control.h index dbf1eb0..0b796fd 100644 --- a/chrome/browser/service/service_process_control.h +++ b/chrome/browser/service/service_process_control.h @@ -95,7 +95,7 @@ class ServiceProcessControl : public IPC::Channel::Sender, // Message handlers void OnCloudPrintProxyIsEnabled(bool enabled, std::string email); - void OnRemotingHostInfo(remoting::ChromotingHostInfo host_info); + void OnRemotingHostInfo(const remoting::ChromotingHostInfo& host_info); // Send a shutdown message to the service process. IPC channel will be // destroyed after calling this method. -- cgit v1.1