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

Unified Diff: chrome/browser/image_decoder.h

Issue 2667993003: Don't use LazyInstance in chrome/browser/image_decoder.* (Closed)
Patch Set: auto* Created 3 years, 10 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 | « no previous file | chrome/browser/image_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/image_decoder.h
diff --git a/chrome/browser/image_decoder.h b/chrome/browser/image_decoder.h
index d8bda97454fab4f214441aa5624a14423f0b330e..2770662f3657eee796a61fa2407fd2592130fd2f 100644
--- a/chrome/browser/image_decoder.h
+++ b/chrome/browser/image_decoder.h
@@ -71,8 +71,7 @@ class ImageDecoder {
#endif // defined(OS_CHROMEOS)
};
- ImageDecoder();
- ~ImageDecoder();
+ static ImageDecoder* GetInstance();
// Calls StartWithOptions() with ImageCodec::DEFAULT_CODEC and
// shrink_to_fit = false.
@@ -101,6 +100,9 @@ class ImageDecoder {
private:
using RequestMap = std::map<int, ImageRequest*>;
+ ImageDecoder();
+ ~ImageDecoder() = delete;
+
void StartWithOptionsImpl(ImageRequest* image_request,
std::vector<uint8_t> image_data,
ImageCodec image_codec,
« no previous file with comments | « no previous file | chrome/browser/image_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698