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

Issue 10830341: options image grid: Make sure the images are requested with the appropriate scale. (Closed)

Created:
8 years, 4 months ago by sadrul
Modified:
8 years, 4 months ago
CC:
chromium-reviews, arv (Not doing code reviews), stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, flackr
Visibility:
Public.

Description

options image grid: Make sure the images are requested with the appropriate scale. BUG=141146 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151954

Patch Set 1 #

Total comments: 1

Patch Set 2 : . #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M chrome/browser/resources/chromeos/user_images_grid.js View 1 1 chunk +5 lines, -1 line 3 comments Download

Messages

Total messages: 11 (0 generated)
sadrul
I have tested this with the userimage-picker in the settings page and login page, and ...
8 years, 4 months ago (2012-08-15 20:31:18 UTC) #1
Rick Byers
On 2012/08/15 20:31:18, sadrul wrote: > I have tested this with the userimage-picker in the ...
8 years, 4 months ago (2012-08-15 20:40:01 UTC) #2
sadrul
nkostylev@ seems to be on vacation. Perhaps ivankr@ would know?
8 years, 4 months ago (2012-08-15 22:35:29 UTC) #3
sadrul
+ivankr@
8 years, 4 months ago (2012-08-16 06:47:15 UTC) #4
Ivan Korotkov
There is no actual need for 2x images in the grid since they are displayed ...
8 years, 4 months ago (2012-08-16 08:31:50 UTC) #5
Ivan Korotkov
On second thought, this makes sense for wallpaper thumbnails, if they're always served of the ...
8 years, 4 months ago (2012-08-16 10:44:10 UTC) #6
sadrul
Added the check to make sure it appends the scale only for chrome:// urls
8 years, 4 months ago (2012-08-16 16:49:28 UTC) #7
Ivan Korotkov
http://codereview.chromium.org/10830341/diff/4002/chrome/browser/resources/chromeos/user_images_grid.js File chrome/browser/resources/chromeos/user_images_grid.js (right): http://codereview.chromium.org/10830341/diff/4002/chrome/browser/resources/chromeos/user_images_grid.js#newcode68 chrome/browser/resources/chromeos/user_images_grid.js:68: if (this.dataItem.url.slice(0, scheme.length) == scheme) Optional: using a regexp ...
8 years, 4 months ago (2012-08-16 17:47:53 UTC) #8
sadrul
Rick: Can I get an owners stamp? http://codereview.chromium.org/10830341/diff/4002/chrome/browser/resources/chromeos/user_images_grid.js File chrome/browser/resources/chromeos/user_images_grid.js (right): http://codereview.chromium.org/10830341/diff/4002/chrome/browser/resources/chromeos/user_images_grid.js#newcode68 chrome/browser/resources/chromeos/user_images_grid.js:68: if (this.dataItem.url.slice(0, ...
8 years, 4 months ago (2012-08-16 19:36:16 UTC) #9
Rick Byers
lgtm
8 years, 4 months ago (2012-08-16 20:09:05 UTC) #10
Ivan Korotkov
8 years, 4 months ago (2012-08-17 08:01:43 UTC) #11
http://codereview.chromium.org/10830341/diff/4002/chrome/browser/resources/ch...
File chrome/browser/resources/chromeos/user_images_grid.js (right):

http://codereview.chromium.org/10830341/diff/4002/chrome/browser/resources/ch...
chrome/browser/resources/chromeos/user_images_grid.js:68: if
(this.dataItem.url.slice(0, scheme.length) == scheme)
On 2012/08/16 19:36:16, sadrul wrote:
> On 2012/08/16 17:47:53, Ivan Korotkov wrote:
> > Optional: using a regexp or url.indexOf(scheme) == 0 is somewhat slower but
> more
> > clear. 
> 
> I considered using indexOf at first. But since this could be datauri, perhaps
it
> makes sense to go with slice (thanks for flackr@)

Right, makes sense.

Powered by Google App Engine
This is Rietveld 408576698