summaryrefslogtreecommitdiffstats
path: root/chrome/browser/service
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 04:37:14 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 04:37:14 +0000
commit3562f1b7d9d71ff68d4d0936112daa1ea1fa7268 (patch)
treea118bc1dbe4ef0050791fbe204ca364c484e8020 /chrome/browser/service
parent62532e803f8090a4745cbf119d57e83510e88c1f (diff)
downloadchromium_src-3562f1b7d9d71ff68d4d0936112daa1ea1fa7268.zip
chromium_src-3562f1b7d9d71ff68d4d0936112daa1ea1fa7268.tar.gz
chromium_src-3562f1b7d9d71ff68d4d0936112daa1ea1fa7268.tar.bz2
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
Diffstat (limited to 'chrome/browser/service')
-rw-r--r--chrome/browser/service/service_process_control.cc2
-rw-r--r--chrome/browser/service/service_process_control.h2
2 files changed, 2 insertions, 2 deletions
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<MessageHandler*>::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.