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

Issue 10021066: Replace the index mapping of wallpaper picker UI and hard coded wallpaper index in C++ (Closed)

Created:
8 years, 8 months ago by bshe
Modified:
8 years, 8 months ago
Reviewers:
flackr, James Hawkins, sky
CC:
chromium-reviews, arv (Not doing code reviews), sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Replace the index mapping of wallpaper picker UI and hard coded wallpaper index in C++ In this CL, we replace the old index system with a smarter one. Its basically the same index system used for default user profile images. BUG=124035 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133602

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : Address rob's review #

Total comments: 6

Patch Set 4 : Rename two files #

Patch Set 5 : Add todo #

Total comments: 2

Patch Set 6 : More reviews #

Total comments: 4

Patch Set 7 : Nit #

Total comments: 14

Patch Set 8 : Address review #

Patch Set 9 : Add enum #

Total comments: 1

Patch Set 10 : Remove unnecessary enum #

Patch Set 11 : Merge to trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -35 lines) Patch
M ash/desktop_background/desktop_background_resources.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/desktop_background/desktop_background_resources.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/resources/options2/chromeos/set_wallpaper_options.js View 1 2 3 4 5 2 chunks +26 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +16 lines, -13 lines 0 comments Download
A chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source2.h View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source2.cc View 1 2 3 4 5 6 7 1 chunk +93 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options2/options_ui2.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 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
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
bshe
Hi Rob. Could you please take a look at this CL? Thanks!
8 years, 8 months ago (2012-04-18 19:01:56 UTC) #1
flackr
We should consider whether it would be better to save a string wallpaper preference. This ...
8 years, 8 months ago (2012-04-18 20:16:34 UTC) #2
bshe
Done. Thanks! https://chromiumcodereview.appspot.com/10021066/diff/1001/chrome/browser/resources/options2/chromeos/set_wallpaper_options.js File chrome/browser/resources/options2/chromeos/set_wallpaper_options.js (right): https://chromiumcodereview.appspot.com/10021066/diff/1001/chrome/browser/resources/options2/chromeos/set_wallpaper_options.js#newcode93 chrome/browser/resources/options2/chromeos/set_wallpaper_options.js:93: $('author-website').innerText = ''; On 2012/04/18 20:16:34, flackr ...
8 years, 8 months ago (2012-04-19 00:15:57 UTC) #3
flackr
https://chromiumcodereview.appspot.com/10021066/diff/1001/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc File chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc (right): https://chromiumcodereview.appspot.com/10021066/diff/1001/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc#newcode35 chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc:35: if (base::StringToInt(base::StringPiece(path.begin() + If this is an established pattern ...
8 years, 8 months ago (2012-04-19 20:13:07 UTC) #4
bshe
Thanks! https://chromiumcodereview.appspot.com/10021066/diff/4003/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc File chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc (right): https://chromiumcodereview.appspot.com/10021066/diff/4003/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc#newcode58 chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc:58: std::string sub_path = url.substr(strlen( On 2012/04/19 20:13:07, flackr ...
8 years, 8 months ago (2012-04-19 21:05:25 UTC) #5
flackr
https://chromiumcodereview.appspot.com/10021066/diff/4003/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc File chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc (right): https://chromiumcodereview.appspot.com/10021066/diff/4003/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc#newcode58 chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc:58: std::string sub_path = url.substr(strlen( On 2012/04/19 21:05:25, bshe wrote: ...
8 years, 8 months ago (2012-04-20 00:16:50 UTC) #6
bshe
Thanks https://chromiumcodereview.appspot.com/10021066/diff/4003/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc File chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc (right): https://chromiumcodereview.appspot.com/10021066/diff/4003/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc#newcode58 chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnails_source2.cc:58: std::string sub_path = url.substr(strlen( As discussed, StartsWithASCII does ...
8 years, 8 months ago (2012-04-20 15:33:00 UTC) #7
flackr
lgtm with nits http://codereview.chromium.org/10021066/diff/21001/ash/desktop_background/desktop_background_resources.cc File ash/desktop_background/desktop_background_resources.cc (right): http://codereview.chromium.org/10021066/diff/21001/ash/desktop_background/desktop_background_resources.cc#newcode226 ash/desktop_background/desktop_background_resources.cc:226: // -1 reserved for random wallpaper ...
8 years, 8 months ago (2012-04-20 16:58:18 UTC) #8
bshe
Thanks! +sky for OWNERS ash/* +jhawkins for OWNERS options2/* http://codereview.chromium.org/10021066/diff/21001/ash/desktop_background/desktop_background_resources.cc File ash/desktop_background/desktop_background_resources.cc (right): http://codereview.chromium.org/10021066/diff/21001/ash/desktop_background/desktop_background_resources.cc#newcode226 ash/desktop_background/desktop_background_resources.cc:226: ...
8 years, 8 months ago (2012-04-20 19:09:15 UTC) #9
James Hawkins
http://codereview.chromium.org/10021066/diff/21002/chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc File chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc (left): http://codereview.chromium.org/10021066/diff/21002/chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc#oldcode68 chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc:68: Please don't make random whitespace changes like this. http://codereview.chromium.org/10021066/diff/21002/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source2.cc ...
8 years, 8 months ago (2012-04-20 19:40:16 UTC) #10
sky
http://codereview.chromium.org/10021066/diff/21002/ash/desktop_background/desktop_background_resources.cc File ash/desktop_background/desktop_background_resources.cc (right): http://codereview.chromium.org/10021066/diff/21002/ash/desktop_background/desktop_background_resources.cc#newcode226 ash/desktop_background/desktop_background_resources.cc:226: // -1 reserved for random wallpaper and -2 for ...
8 years, 8 months ago (2012-04-20 19:51:05 UTC) #11
bshe
+sky http://codereview.chromium.org/10021066/diff/21002/ash/desktop_background/desktop_background_resources.cc File ash/desktop_background/desktop_background_resources.cc (right): http://codereview.chromium.org/10021066/diff/21002/ash/desktop_background/desktop_background_resources.cc#newcode226 ash/desktop_background/desktop_background_resources.cc:226: // -1 reserved for random wallpaper and -2 ...
8 years, 8 months ago (2012-04-20 20:42:41 UTC) #12
sky
On Fri, Apr 20, 2012 at 1:42 PM, <bshe@chromium.org> wrote: > +sky > > > ...
8 years, 8 months ago (2012-04-20 21:04:00 UTC) #13
bshe
+james http://codereview.chromium.org/10021066/diff/21002/chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc File chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc (left): http://codereview.chromium.org/10021066/diff/21002/chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc#oldcode68 chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc:68: Sorry. Didn't notice it. Thanks. On 2012/04/20 19:40:17, ...
8 years, 8 months ago (2012-04-20 21:11:42 UTC) #14
bshe
On 2012/04/20 21:04:00, sky wrote: > On Fri, Apr 20, 2012 at 1:42 PM, <mailto:bshe@chromium.org> ...
8 years, 8 months ago (2012-04-20 21:32:48 UTC) #15
sky
LGTM http://codereview.chromium.org/10021066/diff/33001/ash/desktop_background/desktop_background_resources.cc File ash/desktop_background/desktop_background_resources.cc (right): http://codereview.chromium.org/10021066/diff/33001/ash/desktop_background/desktop_background_resources.cc#newcode227 ash/desktop_background/desktop_background_resources.cc:227: enum { Used named enums, but don't add ...
8 years, 8 months ago (2012-04-20 22:39:15 UTC) #16
bshe
+james friendly ping?
8 years, 8 months ago (2012-04-23 20:10:14 UTC) #17
James Hawkins
LGTM
8 years, 8 months ago (2012-04-23 20:12:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/10021066/35001
8 years, 8 months ago (2012-04-23 20:15:14 UTC) #19
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc. While running patch -p1 --forward --force; patching file chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc ...
8 years, 8 months ago (2012-04-23 20:15:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/10021066/40001
8 years, 8 months ago (2012-04-24 00:14:41 UTC) #21
commit-bot: I haz the power
8 years, 8 months ago (2012-04-24 02:06:02 UTC) #22
Change committed as 133602

Powered by Google App Engine
This is Rietveld 408576698