diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-27 20:54:23 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-27 20:54:23 +0000 |
commit | 2ea9d1c08a54963b67bd076451e18d774c3f2a8a (patch) | |
tree | 236f926c146cbdebccf807e88fa09975b747ea2c /chrome | |
parent | ae13dd3adeb2d2a505fd4e8d5c39c9fe57fd6490 (diff) | |
download | chromium_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')
-rw-r--r-- | chrome/browser/extensions/extension_updater_unittest.cc | 4 |
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); |