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

Issue 1747843002: Rename raw_image() to image_bytes() in UserImage (Closed)

Created:
4 years, 9 months ago by satorux1
Modified:
4 years, 9 months ago
Reviewers:
hashimoto
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, dzhioev+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename raw_image() to image_bytes() in UserImage raw_image() was a misnomer, because this function returns data bytes representation of an image encoded in web-compatible format such as JPEG for WebUI (ex. chrome://userimage/), rather than raw bitmap data. Along the way, get rid of DiscardRawImage() that is not used at all BUG=590630 TEST=everything builds as before TBR=achuith@chromium.org for components/user_manager, bshe@chromium.org for components/wallpaper Committed: https://crrev.com/730760a001e019fc2f5fa8d8a2035d0e9dd8539d Cr-Commit-Position: refs/heads/master@{#378687}

Patch Set 1 #

Total comments: 10

Patch Set 2 : address comments #

Patch Set 3 : rebase and address comments #

Patch Set 4 : polish #

Total comments: 4

Patch Set 5 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -53 lines) Patch
M chrome/browser/chromeos/login/users/avatar/user_image_loader.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/image_source.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/user_image_source.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M components/user_manager/user.h View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M components/user_manager/user.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/user_manager/user_image/user_image.h View 1 2 3 4 2 chunks +20 lines, -18 lines 0 comments Download
M components/user_manager/user_image/user_image.cc View 1 2 3 4 3 chunks +10 lines, -14 lines 0 comments Download
M components/wallpaper/wallpaper_manager_base.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/wallpaper/wallpaper_manager_base.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
satorux1
4 years, 9 months ago (2016-02-29 07:43:31 UTC) #2
hashimoto
https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user.h File components/user_manager/user.h (right): https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user.h#newcode136 components/user_manager/user.h:136: // Whether |web_image| contains data in format that is ...
4 years, 9 months ago (2016-02-29 08:01:59 UTC) #3
satorux1
https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user.h File components/user_manager/user.h (right): https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user.h#newcode136 components/user_manager/user.h:136: // Whether |web_image| contains data in format that is ...
4 years, 9 months ago (2016-02-29 08:11:41 UTC) #4
hashimoto
https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user_image/user_image.h File components/user_manager/user_image/user_image.h (right): https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user_image/user_image.h#newcode25 components/user_manager/user_image/user_image.h:25: typedef std::vector<unsigned char> WebImage; On 2016/02/29 08:11:41, satorux1 wrote: ...
4 years, 9 months ago (2016-02-29 10:03:19 UTC) #5
satorux1
https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user_image/user_image.h File components/user_manager/user_image/user_image.h (right): https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user_image/user_image.h#newcode25 components/user_manager/user_image/user_image.h:25: typedef std::vector<unsigned char> WebImage; On 2016/02/29 10:03:19, hashimoto wrote: ...
4 years, 9 months ago (2016-02-29 11:07:50 UTC) #6
hashimoto
https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user_image/user_image.h File components/user_manager/user_image/user_image.h (right): https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user_image/user_image.h#newcode25 components/user_manager/user_image/user_image.h:25: typedef std::vector<unsigned char> WebImage; On 2016/02/29 11:07:49, satorux1 wrote: ...
4 years, 9 months ago (2016-03-01 05:59:10 UTC) #7
satorux1
https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user_image/user_image.h File components/user_manager/user_image/user_image.h (right): https://codereview.chromium.org/1747843002/diff/1/components/user_manager/user_image/user_image.h#newcode25 components/user_manager/user_image/user_image.h:25: typedef std::vector<unsigned char> WebImage; On 2016/03/01 05:59:10, hashimoto wrote: ...
4 years, 9 months ago (2016-03-01 07:37:04 UTC) #9
hashimoto
lgtm with nits https://codereview.chromium.org/1747843002/diff/60001/components/user_manager/user_image/user_image.h File components/user_manager/user_image/user_image.h (right): https://codereview.chromium.org/1747843002/diff/60001/components/user_manager/user_image/user_image.h#newcode53 components/user_manager/user_image/user_image.h:53: void DiscardBytes(); Is this needed? https://codereview.chromium.org/1747843002/diff/60001/components/wallpaper/wallpaper_manager_base.h ...
4 years, 9 months ago (2016-03-01 08:04:22 UTC) #10
satorux1
https://codereview.chromium.org/1747843002/diff/60001/components/user_manager/user_image/user_image.h File components/user_manager/user_image/user_image.h (right): https://codereview.chromium.org/1747843002/diff/60001/components/user_manager/user_image/user_image.h#newcode53 components/user_manager/user_image/user_image.h:53: void DiscardBytes(); On 2016/03/01 08:04:22, hashimoto wrote: > Is ...
4 years, 9 months ago (2016-03-01 08:11:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1747843002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1747843002/80001
4 years, 9 months ago (2016-03-02 00:13:21 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/152240)
4 years, 9 months ago (2016-03-02 00:29:00 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1747843002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1747843002/80001
4 years, 9 months ago (2016-03-02 03:36:33 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/152339)
4 years, 9 months ago (2016-03-02 03:50:37 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1747843002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1747843002/80001
4 years, 9 months ago (2016-03-02 04:13:30 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-02 04:22:40 UTC) #26
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 04:23:51 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/730760a001e019fc2f5fa8d8a2035d0e9dd8539d
Cr-Commit-Position: refs/heads/master@{#378687}

Powered by Google App Engine
This is Rietveld 408576698