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

Unified Diff: chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h

Issue 931993002: Make image_decoder a Leaky LazyInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix user_image_loader Created 5 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
Index: chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h
diff --git a/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h b/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h
index d0282e2ab257f2338e157149aabe8416711939e4..d2d3ad1d2387048c9ca23626ebaede6073d66978 100644
--- a/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h
+++ b/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h
@@ -114,9 +114,8 @@ class ChangePictureOptionsHandler : public ::options::OptionsPageUIHandler,
gfx::NativeWindow GetBrowserWindow() const;
// Overriden from ImageDecoder::Delegate:
- void OnImageDecoded(const ImageDecoder* decoder,
- const SkBitmap& decoded_image) override;
- void OnDecodeImageFailed(const ImageDecoder* decoder) override;
+ void OnImageDecoded(const SkBitmap& decoded_image) override;
+ void OnDecodeImageFailed() override;
// Returns user related to current WebUI. If this user doesn't exist,
// returns active user.
@@ -139,10 +138,6 @@ class ChangePictureOptionsHandler : public ::options::OptionsPageUIHandler,
content::NotificationRegistrar registrar_;
- // Last ImageDecoder instance used to decode an image blob received by
- // HandlePhotoTaken.
- scoped_refptr<ImageDecoder> image_decoder_;
-
DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler);
};

Powered by Google App Engine
This is Rietveld 408576698