summaryrefslogtreecommitdiffstats
path: root/content/common/net
diff options
context:
space:
mode:
authorgroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-12 01:59:47 +0000
committergroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-12 01:59:47 +0000
commitf5ae49373559c7492ec1e56dda6a5b270474c590 (patch)
tree928e0e07175941496c1aea29c763fb6deaefccf6 /content/common/net
parentd9d6b3a6a671b606e9f6fceb6368ec522fa52be0 (diff)
downloadchromium_src-f5ae49373559c7492ec1e56dda6a5b270474c590.zip
chromium_src-f5ae49373559c7492ec1e56dda6a5b270474c590.tar.gz
chromium_src-f5ae49373559c7492ec1e56dda6a5b270474c590.tar.bz2
[Coverity] Fixed call by value to by reference
CID=102901 BUG=none TEST=none Review URL: http://codereview.chromium.org/9148018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/net')
-rw-r--r--content/common/net/url_fetcher_impl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/common/net/url_fetcher_impl.cc b/content/common/net/url_fetcher_impl.cc
index 26d665d..3807934 100644
--- a/content/common/net/url_fetcher_impl.cc
+++ b/content/common/net/url_fetcher_impl.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -114,7 +114,7 @@ class URLFetcherImpl::Core
void CreateTempFile();
void DidCreateTempFile(base::PlatformFileError error_code,
base::PassPlatformFile file_handle,
- FilePath file_path);
+ const FilePath& file_path);
// Record |num_bytes_| response bytes in |core_->buffer_| to the file.
void WriteBuffer(int num_bytes);
@@ -345,7 +345,7 @@ void URLFetcherImpl::Core::TempFileWriter::CreateTempFile() {
void URLFetcherImpl::Core::TempFileWriter::DidCreateTempFile(
base::PlatformFileError error_code,
base::PassPlatformFile file_handle,
- FilePath file_path) {
+ const FilePath& file_path) {
DCHECK(core_->io_message_loop_proxy_->BelongsToCurrentThread());
if (base::PLATFORM_FILE_OK != error_code) {