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

Issue 10454044: Added support for animated/nonanimated user image. (Closed)

Created:
8 years, 6 months ago by ygorshenin1
Modified:
8 years, 6 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, kkania, arv (Not doing code reviews), robertshield, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Added support for animated/nonanimated user image. There are no optimizations (for instance, image is still decoded to PNG at each request) and bug with replaying animation at each click on already active user pod, but CL is big enough, so we should start review. BUG=114083 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139779 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141716

Patch Set 1 #

Total comments: 31

Patch Set 2 : Fix, sync. #

Patch Set 3 : Deleted useless inclusions. #

Total comments: 2

Patch Set 4 : Added clarifying comment. #

Total comments: 6

Patch Set 5 : Fixed mock. #

Total comments: 6

Patch Set 6 : Added comments. #

Patch Set 7 : Deleted useless inclusion. #

Patch Set 8 : Fixed user image source GetUserImage in guest mode. #

Patch Set 9 : Fixed getting of mime type. #

Patch Set 10 : Small fixes to comments. #

Total comments: 12

Patch Set 11 : Sync, fix. #

Patch Set 12 : Comment is fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -79 lines) Patch
M chrome/browser/automation/automation_provider_observers_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/user.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +13 lines, -5 lines 0 comments Download
A chrome/browser/chromeos/login/user_image.h View 1 2 3 4 5 6 7 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/user_image.cc View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_image_loader.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_image_loader.cc View 1 2 3 4 5 6 7 4 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_image_screen.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 7 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 19 chunks +39 lines, -30 lines 0 comments Download
M chrome/browser/image_decoder.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/user_pod_row.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options2/chromeos/change_picture_options.js View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/chrome_url_data_manager_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +41 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/user_image_source2.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +67 lines, -7 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
ygorshenin1
8 years, 6 months ago (2012-05-28 17:39:19 UTC) #1
Nikita (slow)
Ivan seems to be a better reviewer for this code. I'll take a quick look ...
8 years, 6 months ago (2012-05-29 05:46:29 UTC) #2
ygorshenin1
+ Ivan
8 years, 6 months ago (2012-05-29 09:22:50 UTC) #3
Ivan Korotkov
http://codereview.chromium.org/10454044/diff/1/chrome/browser/chromeos/login/user.cc File chrome/browser/chromeos/login/user.cc (right): http://codereview.chromium.org/10454044/diff/1/chrome/browser/chromeos/login/user.cc#newcode30 chrome/browser/chromeos/login/user.cc:30: bool IsGIFImage(const std::vector<unsigned char>& data) { Feels like this ...
8 years, 6 months ago (2012-05-29 10:50:23 UTC) #4
ygorshenin1
Many thanks! PTAL. http://codereview.chromium.org/10454044/diff/1/chrome/browser/chromeos/login/user.cc File chrome/browser/chromeos/login/user.cc (right): http://codereview.chromium.org/10454044/diff/1/chrome/browser/chromeos/login/user.cc#newcode30 chrome/browser/chromeos/login/user.cc:30: bool IsGIFImage(const std::vector<unsigned char>& data) { ...
8 years, 6 months ago (2012-05-30 12:17:33 UTC) #5
Ivan Korotkov
lgtm http://codereview.chromium.org/10454044/diff/6003/chrome/browser/chromeos/login/user_image.cc File chrome/browser/chromeos/login/user_image.cc (right): http://codereview.chromium.org/10454044/diff/6003/chrome/browser/chromeos/login/user_image.cc#newcode44 chrome/browser/chromeos/login/user_image.cc:44: RawImage().swap(raw_image_); As discussed offline, this idiom is OK ...
8 years, 6 months ago (2012-05-30 13:06:51 UTC) #6
ygorshenin1
+ James James, I need a review for chrome/browser/ui/webui/options2 and chrome/browser/resources/options2. http://codereview.chromium.org/10454044/diff/6003/chrome/browser/chromeos/login/user_image.cc File chrome/browser/chromeos/login/user_image.cc (right): ...
8 years, 6 months ago (2012-05-30 13:19:14 UTC) #7
James Hawkins
LGTM with nits. http://codereview.chromium.org/10454044/diff/14005/chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc File chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc (right): http://codereview.chromium.org/10454044/diff/14005/chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc#newcode20 chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc:20: const char kKeyAnimated[] = "animated"; nit: ...
8 years, 6 months ago (2012-05-30 15:18:48 UTC) #8
Nikita (slow)
lgtm http://codereview.chromium.org/10454044/diff/24/chrome/browser/chromeos/login/user_image.h File chrome/browser/chromeos/login/user_image.h (right): http://codereview.chromium.org/10454044/diff/24/chrome/browser/chromeos/login/user_image.h#newcode17 chrome/browser/chromeos/login/user_image.h:17: // images) and user wallpapers. nit: why wallpaper ...
8 years, 6 months ago (2012-05-30 17:19:11 UTC) #9
ygorshenin1
Many thanks! http://codereview.chromium.org/10454044/diff/14005/chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc File chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc (right): http://codereview.chromium.org/10454044/diff/14005/chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc#newcode20 chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc:20: const char kKeyAnimated[] = "animated"; On 2012/05/30 ...
8 years, 6 months ago (2012-05-31 11:17:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/10454044/26
8 years, 6 months ago (2012-05-31 11:29:47 UTC) #11
commit-bot: I haz the power
Change committed as 139779
8 years, 6 months ago (2012-05-31 13:49:44 UTC) #12
ygorshenin1
On 2012/05/31 13:49:44, I haz the power (commit-bot) wrote: > Change committed as 139779 Sorry ...
8 years, 6 months ago (2012-06-01 14:18:21 UTC) #13
James Hawkins
On 2012/06/01 14:18:21, ygorshenin1 wrote: > On 2012/05/31 13:49:44, I haz the power (commit-bot) wrote: ...
8 years, 6 months ago (2012-06-01 21:03:33 UTC) #14
ygorshenin1
James, could you please take another look on the changes in chrome/browser/ui/webui/* part? On 2012/06/01 ...
8 years, 6 months ago (2012-06-03 19:36:17 UTC) #15
James Hawkins
http://codereview.chromium.org/10454044/diff/7008/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc File chrome/browser/ui/webui/chrome_url_data_manager_backend.cc (right): http://codereview.chromium.org/10454044/diff/7008/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc#newcode174 chrome/browser/ui/webui/chrome_url_data_manager_backend.cc:174: // Used to notify us that the data mime ...
8 years, 6 months ago (2012-06-04 15:50:13 UTC) #16
ygorshenin1
PTAL http://codereview.chromium.org/10454044/diff/7008/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc File chrome/browser/ui/webui/chrome_url_data_manager_backend.cc (right): http://codereview.chromium.org/10454044/diff/7008/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc#newcode174 chrome/browser/ui/webui/chrome_url_data_manager_backend.cc:174: // Used to notify us that the data ...
8 years, 6 months ago (2012-06-09 09:34:26 UTC) #17
James Hawkins
LGTM
8 years, 6 months ago (2012-06-12 17:04:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/10454044/29002
8 years, 6 months ago (2012-06-12 17:53:39 UTC) #19
commit-bot: I haz the power
8 years, 6 months ago (2012-06-12 19:52:36 UTC) #20
Change committed as 141716

Powered by Google App Engine
This is Rietveld 408576698