diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-24 20:56:24 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-24 20:56:24 +0000 |
commit | c68a2102acc20107faa31385e84bcc28cfb92969 (patch) | |
tree | c7ac63329cf51e38c2f92cbc0ee1be6d89fa3681 /chrome/browser/automation | |
parent | 92d5641ac0562e48fc2b4dfba487b235a25177b8 (diff) | |
download | chromium_src-c68a2102acc20107faa31385e84bcc28cfb92969.zip chromium_src-c68a2102acc20107faa31385e84bcc28cfb92969.tar.gz chromium_src-c68a2102acc20107faa31385e84bcc28cfb92969.tar.bz2 |
Coverity: Pass parameters by reference.
CID=14390,14587,14798,14825,14990,15376,15500,15654,15731,15777,15857
BUG=none
TEST=none
R=csilv@chromium.org
Review URL: http://codereview.chromium.org/6696052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
4 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/automation/automation_util.cc b/chrome/browser/automation/automation_util.cc index 10f5da4..a96a4a1 100644 --- a/chrome/browser/automation/automation_util.cc +++ b/chrome/browser/automation/automation_util.cc @@ -77,7 +77,7 @@ void GetCookies(const GURL& url, } void SetCookie(const GURL& url, - const std::string value, + const std::string& value, TabContents* contents, int* response_value) { *response_value = -1; diff --git a/chrome/browser/automation/automation_util.h b/chrome/browser/automation/automation_util.h index bb38344..f08d238f 100644 --- a/chrome/browser/automation/automation_util.h +++ b/chrome/browser/automation/automation_util.h @@ -25,7 +25,7 @@ void GetCookies(const GURL& url, // Sets a cookie for |url| in the given tab. Can be called from any thread. void SetCookie(const GURL& url, - const std::string value, + const std::string& value, TabContents* contents, int* response_value); diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc index 1e64656..d579942 100644 --- a/chrome/browser/automation/testing_automation_provider.cc +++ b/chrome/browser/automation/testing_automation_provider.cc @@ -487,7 +487,7 @@ void TestingAutomationProvider::GetCookies(const GURL& url, int handle, } void TestingAutomationProvider::SetCookie(const GURL& url, - const std::string value, + const std::string& value, int handle, int* response_value) { TabContents *contents = tab_tracker_->ContainsHandle(handle) ? diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h index 762f9c0..496a2cc 100644 --- a/chrome/browser/automation/testing_automation_provider.h +++ b/chrome/browser/automation/testing_automation_provider.h @@ -68,7 +68,7 @@ class TestingAutomationProvider : public AutomationProvider, void GetCookies(const GURL& url, int handle, int* value_size, std::string* value); void SetCookie(const GURL& url, - const std::string value, + const std::string& value, int handle, int* response_value); void DeleteCookie(const GURL& url, const std::string& cookie_name, |