Commit 63b1e125 authored by jhawkins@chromium.org's avatar jhawkins@chromium.org

Coverity: Fix a pass-by-value.

CID_COUNT=1
CID=104610
BUG=none
R=khorimoto@chromium.org
TBR=sky


Review URL: https://chromiumcodereview.appspot.com/10829154

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149765 0039d316-1c4b-4281-b951-d872f2087c98
parent 502b35e6
...@@ -65,7 +65,7 @@ void GenerateSalt(uint8 salt[LINK_SALT_LENGTH]) { ...@@ -65,7 +65,7 @@ void GenerateSalt(uint8 salt[LINK_SALT_LENGTH]) {
} }
// Opens file on a background thread to not block UI thread. // Opens file on a background thread to not block UI thread.
void AsyncOpen(FILE** file, FilePath filename) { void AsyncOpen(FILE** file, const FilePath& filename) {
*file = OpenFile(filename, "wb+"); *file = OpenFile(filename, "wb+");
DLOG_IF(ERROR, !(*file)) << "Failed to open file " << filename.value(); DLOG_IF(ERROR, !(*file)) << "Failed to open file " << filename.value();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment