Index: chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc |
diff --git a/chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc b/chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc |
index 9ae76253c3bb4db6d4584970202449ed06684405..57f54a945e54a799d98b2c9f82f0fd84ebf4639c 100644 |
--- a/chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc |
+++ b/chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc |
@@ -16,6 +16,10 @@ |
#include "chrome/browser/image_decoder.h" |
#include "content/public/browser/browser_thread.h" |
+#if defined(OS_WIN) |
Lei Zhang
2013/08/07 01:03:05
nit: not needed.
Greg Billock
2013/08/07 17:00:56
Done.
|
+#include "base/file_util.h" |
+#endif |
+ |
using content::BrowserThread; |
namespace chrome { |
@@ -116,19 +120,6 @@ void SupportedImageTypeValidator::StartPreWriteValidation( |
weak_factory_.GetWeakPtr())); |
} |
-void SupportedImageTypeValidator::StartPostWriteValidation( |
- const base::FilePath& dest_platform_path, |
- const ResultCallback& result_callback) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
- post_write_callback_ = result_callback; |
- |
- // TODO(gbillock): Insert AV call here in the right validator. |
- BrowserThread::PostTask( |
- BrowserThread::IO, |
- FROM_HERE, |
- base::Bind(post_write_callback_, base::PLATFORM_FILE_OK)); |
-} |
- |
SupportedImageTypeValidator::SupportedImageTypeValidator( |
const base::FilePath& path) |
: path_(path), |