Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1049)

Unified Diff: chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc

Issue 1067593005: Fix race conditions in ImageDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use TestBrowserThreadBundle, cleanup tests Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/image_holder_unittest.cc ('k') | chrome/browser/profiles/profile_downloader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ac590cd73d7fd7946ff41515855bdf1c882e7596..2e83a76f3557547038f6dbe30cc5d81a5627fcf4 100644
--- a/chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc
+++ b/chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc
@@ -52,9 +52,7 @@ class ImageDecoderDelegateAdapter : public ImageDecoder::ImageRequest {
ImageDecoderDelegateAdapter(
scoped_ptr<std::string> data,
const storage::CopyOrMoveFileValidator::ResultCallback& callback)
- : ImageRequest(content::BrowserThread::GetMessageLoopProxyForThread(
- BrowserThread::IO)),
- data_(data.Pass()),
+ : data_(data.Pass()),
callback_(callback) {
DCHECK(data_);
}
« no previous file with comments | « chrome/browser/image_holder_unittest.cc ('k') | chrome/browser/profiles/profile_downloader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698