summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_about_handler.h
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-29 19:02:50 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-29 19:02:50 +0000
commite0d0819bbc5bac340e48a80ea62561139e08e374 (patch)
treef6f1ec65713cb22032d69e7908c42367b74b09bb /chrome/browser/browser_about_handler.h
parentdd50906e9f1f2203b96e09f5af2952fde3ab8ba7 (diff)
downloadchromium_src-e0d0819bbc5bac340e48a80ea62561139e08e374.zip
chromium_src-e0d0819bbc5bac340e48a80ea62561139e08e374.tar.gz
chromium_src-e0d0819bbc5bac340e48a80ea62561139e08e374.tar.bz2
Revert 79705 - Revert 79651 - Coverity: Pass parameters by reference.
Also remove an unused function that I found. CID=2634,4471,5392,6433,6434,6535,6777,6780,6781,6792,6810,7665,7759,8056,8072, 8637,8718,8726 BUG=none TEST=non R=csilv@chromium.org Review URL: http://codereview.chromium.org/6730046 TBR=jhawkins@chromium.org Review URL: http://codereview.chromium.org/6773015 TBR=dhollowa@chromium.org Review URL: http://codereview.chromium.org/6772013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79714 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.h')
-rw-r--r--chrome/browser/browser_about_handler.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/browser_about_handler.h b/chrome/browser/browser_about_handler.h
index b894ceb..d319fbe 100644
--- a/chrome/browser/browser_about_handler.h
+++ b/chrome/browser/browser_about_handler.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -52,14 +52,14 @@ class AboutTcmallocOutputs {
AboutTcmallocOutputsType* outputs() { return &outputs_; }
// Records the output for a specified header string.
- void SetOutput(std::string header, std::string output) {
+ void SetOutput(const std::string& header, const std::string& output) {
outputs_[header] = output;
}
// Callback for output returned from renderer processes. Adds
// the output for a canonical renderer header string that
// incorporates the pid.
- void RendererCallback(base::ProcessId pid, std::string output) {
+ void RendererCallback(base::ProcessId pid, const std::string& output) {
SetOutput(StringPrintf("Renderer PID %d", static_cast<int>(pid)), output);
}
@@ -75,7 +75,8 @@ class AboutTcmallocOutputs {
};
// Glue between the callback task and the method in the singleton.
-void AboutTcmallocRendererCallback(base::ProcessId pid, std::string output);
+void AboutTcmallocRendererCallback(base::ProcessId pid,
+ const std::string& output);
#endif
#endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_