summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-27 20:54:23 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-27 20:54:23 +0000
commit2ea9d1c08a54963b67bd076451e18d774c3f2a8a (patch)
tree236f926c146cbdebccf807e88fa09975b747ea2c /chrome/browser
parentae13dd3adeb2d2a505fd4e8d5c39c9fe57fd6490 (diff)
downloadchromium_src-2ea9d1c08a54963b67bd076451e18d774c3f2a8a.zip
chromium_src-2ea9d1c08a54963b67bd076451e18d774c3f2a8a.tar.gz
chromium_src-2ea9d1c08a54963b67bd076451e18d774c3f2a8a.tar.bz2
Coverity: Pass strings by reference.
CID=5146 BUG=none TEST=none Review URL: http://codereview.chromium.org/160154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21700 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/extensions/extension_updater_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_updater_unittest.cc b/chrome/browser/extensions/extension_updater_unittest.cc
index ebe73fb..263ebfd 100644
--- a/chrome/browser/extensions/extension_updater_unittest.cc
+++ b/chrome/browser/extensions/extension_updater_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <map>
+
#include "base/file_util.h"
#include "base/string_util.h"
#include "chrome/browser/extensions/extension_updater.h"
@@ -204,7 +206,7 @@ static const int kUpdateFrequencySecs = 15;
// puts the key/value pairs into |result|. For keys with no value, the empty
// string is used. So for "a=1&b=foo&c", result would map "a" to "1", "b" to
// "foo", and "c" to "".
-static void ExtractParameters(const std::string params,
+static void ExtractParameters(const std::string& params,
std::map<std::string, std::string>* result) {
std::vector<std::string> pairs;
SplitString(params, '&', &pairs);