summaryrefslogtreecommitdiffstats
path: root/chrome/service
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 14:20:12 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 14:20:12 +0000
commit2d57f5d07890c173c79432b64e215b6bb049444a (patch)
treee84880ad33d40818ff47a2ac72ac22a91c8b61ca /chrome/service
parent7a0c14d18c721f08332eaab1094e918027e0b132 (diff)
downloadchromium_src-2d57f5d07890c173c79432b64e215b6bb049444a.zip
chromium_src-2d57f5d07890c173c79432b64e215b6bb049444a.tar.gz
chromium_src-2d57f5d07890c173c79432b64e215b6bb049444a.tar.bz2
Added WARN_UNUSED_RESULT to ScopedTempDir methods.
BUG=NONE TEST=all targets build, tests pass. Review URL: http://codereview.chromium.org/6042009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r--chrome/service/service_utility_process_host.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/service/service_utility_process_host.cc b/chrome/service/service_utility_process_host.cc
index f531169..07ba931 100644
--- a/chrome/service/service_utility_process_host.cc
+++ b/chrome/service/service_utility_process_host.cc
@@ -198,7 +198,8 @@ void ServiceUtilityProcessHost::Client::MetafileAvailable(
// The metafile was created in a temp folder which needs to get deleted after
// we have processed it.
ScopedTempDir scratch_metafile_dir;
- scratch_metafile_dir.Set(metafile_path.DirName());
+ if (!scratch_metafile_dir.Set(metafile_path.DirName()))
+ LOG(WARNING) << "Unable to set scratch metafile directory";
#if defined(OS_WIN)
printing::NativeMetafile metafile;
if (!metafile.CreateFromFile(metafile_path)) {