summaryrefslogtreecommitdiffstats
path: root/chrome/browser/login_prompt_uitest.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 23:21:24 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 23:21:24 +0000
commitbec0a9ca90f0f2c5a8c39c5ad3deb9ec5c8e6073 (patch)
tree5f94d8d93d5c560f5d84d19e436df16dad90d0e7 /chrome/browser/login_prompt_uitest.cc
parentdfe4cf45fc0b51f3f901dcd75d6e829b8e745cb7 (diff)
downloadchromium_src-bec0a9ca90f0f2c5a8c39c5ad3deb9ec5c8e6073.zip
chromium_src-bec0a9ca90f0f2c5a8c39c5ad3deb9ec5c8e6073.tar.gz
chromium_src-bec0a9ca90f0f2c5a8c39c5ad3deb9ec5c8e6073.tar.bz2
coverity: Pass strings by reference.
CID=5738 BUG=none TEST=none Review URL: http://codereview.chromium.org/165486 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23381 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/login_prompt_uitest.cc')
-rw-r--r--chrome/browser/login_prompt_uitest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/login_prompt_uitest.cc b/chrome/browser/login_prompt_uitest.cc
index 41684b7..9751533 100644
--- a/chrome/browser/login_prompt_uitest.cc
+++ b/chrome/browser/login_prompt_uitest.cc
@@ -55,7 +55,8 @@ class LoginPromptTest : public UITest {
wstring password_bad_;
};
-wstring ExpectedTitleFromAuth(wstring username, wstring password) {
+wstring ExpectedTitleFromAuth(const wstring& username,
+ const wstring& password) {
// The TestServer sets the title to username/password on successful login.
return username + L"/" + password;
}