summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/profile_info_cache.cc
diff options
context:
space:
mode:
authorscr@chromium.org <scr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-21 00:36:05 +0000
committerscr@chromium.org <scr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-21 00:36:05 +0000
commit08947b7b170b37623ae29459f51e12973bc011e7 (patch)
tree93e03f7555bd04ecc2e6298449f65dfdae9c64d8 /chrome/browser/profiles/profile_info_cache.cc
parenta8d851f8192a44806c07c91ca109b623e2b2fd82 (diff)
downloadchromium_src-08947b7b170b37623ae29459f51e12973bc011e7.zip
chromium_src-08947b7b170b37623ae29459f51e12973bc011e7.tar.gz
chromium_src-08947b7b170b37623ae29459f51e12973bc011e7.tar.bz2
Coverity fixes for PASS_BY_VALUE.
CID=102503,102504 R=sail@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8989030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115242 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile_info_cache.cc')
-rw-r--r--chrome/browser/profiles/profile_info_cache.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/profiles/profile_info_cache.cc b/chrome/browser/profiles/profile_info_cache.cc
index c5e2330..3a7d2cb 100644
--- a/chrome/browser/profiles/profile_info_cache.cc
+++ b/chrome/browser/profiles/profile_info_cache.cc
@@ -350,7 +350,7 @@ const gfx::Image* ProfileInfoCache::GetGAIAPictureOfProfileAtIndex(
return NULL;
}
-void ProfileInfoCache::OnGAIAPictureLoaded(FilePath path,
+void ProfileInfoCache::OnGAIAPictureLoaded(const FilePath& path,
gfx::Image** image) const {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -369,7 +369,8 @@ void ProfileInfoCache::OnGAIAPictureLoaded(FilePath path,
content::NotificationService::NoDetails());
}
-void ProfileInfoCache::OnGAIAPictureSaved(FilePath path, bool* success) const {
+void ProfileInfoCache::OnGAIAPictureSaved(const FilePath& path,
+ bool* success) const {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (*success) {