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

Unified Diff: chrome/browser/chromeos/login/user_image_loader.h

Issue 10912019: Enable robust decoding of custom wallpaper and allow custom wallpaper on login page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Check conflict. Created 8 years, 4 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/chromeos/login/user_image_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_image_loader.h
diff --git a/chrome/browser/chromeos/login/user_image_loader.h b/chrome/browser/chromeos/login/user_image_loader.h
index 01b55fd2714eac5ed8574344ef00879cc1bc5c68..a5a8b4589c29016c79a2a2b9351f7516f923e010 100644
--- a/chrome/browser/chromeos/login/user_image_loader.h
+++ b/chrome/browser/chromeos/login/user_image_loader.h
@@ -28,7 +28,7 @@ class UserImageLoader : public base::RefCountedThreadSafe<UserImageLoader>,
// Callback used to indicate that image has been loaded.
typedef base::Callback<void(const UserImage& user_image)> LoadedCallback;
- UserImageLoader();
+ explicit UserImageLoader(ImageDecoder::ImageCodec image_codec);
// Start reading the image from |filepath| on the file thread. Calls
// |loaded_cb| when image has been successfully loaded.
@@ -65,6 +65,9 @@ class UserImageLoader : public base::RefCountedThreadSafe<UserImageLoader>,
// The message loop object of the thread in which we notify the delegate.
MessageLoop* target_message_loop_;
+ // Specify how the file should be decoded in the utility process.
+ const ImageDecoder::ImageCodec image_codec_;
+
// Holds info structures about all images we're trying to decode.
// Accessed only on FILE thread.
ImageInfoMap image_info_map_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/user_image_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698