summaryrefslogtreecommitdiffstats
path: root/chrome/browser/local_discovery
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-21 19:05:43 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-21 19:07:38 +0000
commit36c762beb87b90eb289ef81c1262674531735d73 (patch)
tree6edae08433cbb5517fcc4b15299c2646401ab358 /chrome/browser/local_discovery
parent6db3123cc4ab6f11ad158f862780c49ba30aedc4 (diff)
downloadchromium_src-36c762beb87b90eb289ef81c1262674531735d73.zip
chromium_src-36c762beb87b90eb289ef81c1262674531735d73.tar.gz
chromium_src-36c762beb87b90eb289ef81c1262674531735d73.tar.bz2
Support scoped_ptr in BrowserThread::DeleteOnThread.
Review URL: https://codereview.chromium.org/491103004 Cr-Commit-Position: refs/heads/master@{#291149} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/local_discovery')
-rw-r--r--chrome/browser/local_discovery/pwg_raster_converter.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/local_discovery/pwg_raster_converter.cc b/chrome/browser/local_discovery/pwg_raster_converter.cc
index 9ae1d06..711c9ce 100644
--- a/chrome/browser/local_discovery/pwg_raster_converter.cc
+++ b/chrome/browser/local_discovery/pwg_raster_converter.cc
@@ -127,7 +127,7 @@ class PwgUtilityProcessHostClient : public content::UtilityProcessHostClient {
void RunCallbackOnUIThread(bool success);
void OnFilesReadyOnUIThread();
- scoped_ptr<FileHandlers> files_;
+ scoped_ptr<FileHandlers, BrowserThread::DeleteOnFileThread> files_;
printing::PdfRenderSettings settings_;
printing::PwgRasterSettings bitmap_settings_;
PWGRasterConverter::ResultCallback callback_;
@@ -142,8 +142,6 @@ PwgUtilityProcessHostClient::PwgUtilityProcessHostClient(
: settings_(settings), bitmap_settings_(bitmap_settings) {}
PwgUtilityProcessHostClient::~PwgUtilityProcessHostClient() {
- // Delete temp directory.
- BrowserThread::DeleteSoon(BrowserThread::FILE, FROM_HERE, files_.release());
}
void PwgUtilityProcessHostClient::Convert(