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

Issue 16634016: Support png wallpapers (Closed)

Created:
7 years, 6 months ago by bshe
Modified:
7 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Support png wallpapers We use a weaker (from security perspective) image decode here in order to support png wallpapers. The weaker image decoder will only used after user logged in. So if it somehow exploited, the damage stays in one user's profile. (Actually, we use image decoder that webkit use. So it is as safe/dangeous as user open the png wallpaper in a browser window) After decoded the png wallpaper, we will reencode it to jpeg. And thereafter, a robust jpeg decoder is used to decode the saved jpegs to guarantee we can safely display wallpaper pre login stage. BUG=237416 TEST= 1. have a png image ready 2. open wallpaper picker, navigate to custom tab 3. change wallpaper to the png file expected: the png file should set as wallpaper 4. logout 5. verify the wallpaper persist Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206852

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : nikita's review #

Total comments: 1

Patch Set 6 : spelling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -45 lines) Patch
M chrome/browser/chromeos/extensions/wallpaper_private_api.cc View 1 2 3 4 5 5 chunks +12 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_private_apitest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.cc View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/wallpaper_manager/main.html View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/wallpaper_manager/test.js View 1 2 6 chunks +31 lines, -16 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
bshe
This CL enables users use PNG files as their wallpapers. All wallpapers will be re-encoded ...
7 years, 6 months ago (2013-06-11 22:16:21 UTC) #1
Nikita (slow)
lgtm https://codereview.chromium.org/16634016/diff/22001/chrome/browser/chromeos/extensions/wallpaper_private_api.cc File chrome/browser/chromeos/extensions/wallpaper_private_api.cc (right): https://codereview.chromium.org/16634016/diff/22001/chrome/browser/chromeos/extensions/wallpaper_private_api.cc#newcode239 chrome/browser/chromeos/extensions/wallpaper_private_api.cc:239: // This function can only be called after ...
7 years, 6 months ago (2013-06-13 13:03:32 UTC) #2
bshe
Done. miket, could you please take a look at extension related code? Thanks! https://codereview.chromium.org/16634016/diff/22001/chrome/browser/chromeos/extensions/wallpaper_private_api.cc File ...
7 years, 6 months ago (2013-06-14 18:12:18 UTC) #3
miket_OOO
LGTM but please update the CL description to briefly mention the safe/unsafe logged-in/not-logged-in part. It's ...
7 years, 6 months ago (2013-06-14 19:57:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/16634016/41001
7 years, 6 months ago (2013-06-17 15:50:53 UTC) #5
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=164448
7 years, 6 months ago (2013-06-17 23:07:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/16634016/41001
7 years, 6 months ago (2013-06-17 23:15:10 UTC) #7
commit-bot: I haz the power
7 years, 6 months ago (2013-06-18 00:08:35 UTC) #8
Message was sent while issue was closed.
Change committed as 206852

Powered by Google App Engine
This is Rietveld 408576698