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

Issue 10829166: New Guest mode avatar on the start screen (Closed)

Created:
8 years, 4 months ago by glotov
Modified:
8 years, 4 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, Ivan Korotkov
Visibility:
Public.

Description

New Guest mode avatar on the start screen BUG=140417 TEST=units, out/Debug/chrome --disable-seccomp-sandbox --parallel-auth --login-manager --login-profile=user --log-level=0 --enable-logging=stderr --no-first-run --user-data-dir=/tmp/user --in-chrome-auth --scroll-pixels=3 --enable-smooth-scrolling --force-compositing-mode --force-device-scale-factor=2 --load-2x-resources Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150937

Patch Set 1 #

Patch Set 2 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+-1 lines, --1 lines) Patch
M chrome/app/theme/default_100_percent/login_guest.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/app/theme/default_200_percent/login_guest.png View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/resources/chromeos/login/user_pod_row.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
glotov
Seems chrome/browser/resources/chromeos/login/user_pod_row.js b/chrome/browser/resources/chromeos/login/user_pod_row.js must be modified as well. I tried to mimic -webkit-image-set, but it ...
8 years, 4 months ago (2012-08-03 14:37:21 UTC) #1
Nikita (slow)
+Peter, how should we detect in JS code dpi? updateUserImage: function() { this.imageElement.src = this.isGuest ...
8 years, 4 months ago (2012-08-03 14:46:26 UTC) #2
Nikita (slow)
Please don't commit this CL yet, still finalizing this asset.
8 years, 4 months ago (2012-08-03 16:31:51 UTC) #3
pkotwicz
In most places in the code, chrome://theme is automatically converted to a webkit-image-set by this ...
8 years, 4 months ago (2012-08-03 16:56:36 UTC) #4
Ivan Korotkov
This looks awful... What about 'src = ... + "@" + window.devicePixelRatio + "x"'?
8 years, 4 months ago (2012-08-03 17:04:53 UTC) #5
pkotwicz
That should work as well
8 years, 4 months ago (2012-08-03 17:27:30 UTC) #6
Nikita (slow)
lgtm for these assets
8 years, 4 months ago (2012-08-06 14:01:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/glotov@chromium.org/10829166/8003
8 years, 4 months ago (2012-08-06 21:51:11 UTC) #8
commit-bot: I haz the power
8 years, 4 months ago (2012-08-06 21:51:20 UTC) #9
Presubmit check for 10829166-8003 failed and returned exit status 1.

Running presubmit commit checks ...
Traceback (most recent call last):
  File "/b/commit-queue/verification/presubmit_shim.py", line 43, in <module>
    sys.exit(presubmit_support.Main(argv))
  File "/b/depot_tools/presubmit_support.py", line 1257, in Main
    rietveld_obj)
  File "/b/depot_tools/presubmit_support.py", line 1105, in DoPresubmitChecks
    results += executer.ExecPresubmitScript(presubmit_script, filename)
  File "/b/depot_tools/presubmit_support.py", line 1022, in ExecPresubmitScript
    result = eval(function_name + '(*__args)', context)
  File "<string>", line 1, in <module>
  File "<string>", line 19, in CheckChangeOnCommit
  File "<string>", line 44, in _CommonChecks
  File
"/b/commit-queue/workdir/chromium/chrome/app/theme/../../../ui/resources/resource_check/resource_scale_factors.py",
line 93, in RunChecks
    width, height = ImageSize(image_path)
  File
"/b/commit-queue/workdir/chromium/chrome/app/theme/../../../ui/resources/resource_check/resource_scale_factors.py",
line 47, in ImageSize
    assert data[:8] == '\x89PNG\r\n\x1A\n' and data[12:16] == 'IHDR'
AssertionError

Powered by Google App Engine
This is Rietveld 408576698