OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/download/drag_download_util.h" | 5 #include "content/browser/download/drag_download_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 void PromiseFileFinalizer::OnDownloadAborted() { | 108 void PromiseFileFinalizer::OnDownloadAborted() { |
109 BrowserThread::PostTask( | 109 BrowserThread::PostTask( |
110 BrowserThread::UI, FROM_HERE, | 110 BrowserThread::UI, FROM_HERE, |
111 base::Bind(&PromiseFileFinalizer::Cleanup, this)); | 111 base::Bind(&PromiseFileFinalizer::Cleanup, this)); |
112 } | 112 } |
113 | 113 |
114 PromiseFileFinalizer::~PromiseFileFinalizer() {} | 114 PromiseFileFinalizer::~PromiseFileFinalizer() {} |
115 | 115 |
116 void PromiseFileFinalizer::Cleanup() { | 116 void PromiseFileFinalizer::Cleanup() { |
117 if (drag_file_downloader_) | 117 if (drag_file_downloader_.get()) |
118 drag_file_downloader_ = NULL; | 118 drag_file_downloader_ = NULL; |
119 } | 119 } |
120 | 120 |
121 } // namespace content | 121 } // namespace content |
OLD | NEW |