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

Issue 1205063002: Fix user pod not always scroll to the center after VK shows up (Closed)

Created:
5 years, 6 months ago by bshe
Modified:
5 years, 5 months ago
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix user pod not always scroll to the center after VK shows up User pod at login/lock screen sometimes doesn't scroll to the center after VK shows up. The problem was we need to set keyboard state before we invoke the resize handler at the login/lock page. But this is not always the case due to the observer for resize is added before observer for keyboard state. This CL simply remove the dependency to keyboard state from resize logic. The dependency was unnecessary anymore. BUG=491214 Committed: https://crrev.com/414c6e51f82e9f1b3285f9cb482865cde3ce2f32 Cr-Commit-Position: refs/heads/master@{#337230}

Patch Set 1 #

Total comments: 4

Patch Set 2 : review #

Patch Set 3 : new approach and clean up #

Total comments: 6

Patch Set 4 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -72 lines) Patch
M chrome/browser/chromeos/login/lock/webui_screen_locker.cc View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/screens/core_oobe_actor.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.cc View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/resources/chromeos/login/login_common.js View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M ui/login/account_picker/user_pod_row.js View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M ui/login/display_manager.js View 1 2 2 chunks +0 lines, -40 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (6 generated)
bshe
Hi Rob. Do you mind to take a look at this CL? Please see CL ...
5 years, 6 months ago (2015-06-24 14:34:57 UTC) #2
flackr
Hey, I'm not exactly clear on how this is failing, or what the changes happening ...
5 years, 6 months ago (2015-06-24 22:08:42 UTC) #3
bshe
Basically, the reason I add onKeyboardBoundsChanged is to make sure LockLayoutManager's OnWindowResized is called after ...
5 years, 6 months ago (2015-06-25 14:01:59 UTC) #4
bshe
discussed with flackr offline and it seems that it is safe to remove the dependancy ...
5 years, 6 months ago (2015-06-25 17:46:48 UTC) #7
flackr
https://codereview.chromium.org/1205063002/diff/80001/chrome/browser/resources/chromeos/login/login_common.js File chrome/browser/resources/chromeos/login/login_common.js (right): https://codereview.chromium.org/1205063002/diff/80001/chrome/browser/resources/chromeos/login/login_common.js#newcode358 chrome/browser/resources/chromeos/login/login_common.js:358: Oobe.setKeyboardState = function(shown, width, height) { Remove the function ...
5 years, 6 months ago (2015-06-25 18:01:37 UTC) #8
bshe
Thanks Rob. Can you take another look please? actually +dpolukhin https://codereview.chromium.org/1205063002/diff/80001/chrome/browser/resources/chromeos/login/login_common.js File chrome/browser/resources/chromeos/login/login_common.js (right): https://codereview.chromium.org/1205063002/diff/80001/chrome/browser/resources/chromeos/login/login_common.js#newcode358 ...
5 years, 6 months ago (2015-06-25 21:15:07 UTC) #10
flackr
https://codereview.chromium.org/1205063002/diff/80001/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc File chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc (right): https://codereview.chromium.org/1205063002/diff/80001/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc#newcode383 chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc:383: if (keyboard_controller) { On 2015/06/25 21:15:07, bshe wrote: > ...
5 years, 6 months ago (2015-06-25 21:49:28 UTC) #11
Dmitry Polukhin
+ Pavel who reviewed CL that added this code https://codereview.chromium.org/304153004
5 years, 6 months ago (2015-06-26 08:59:21 UTC) #13
bshe
https://codereview.chromium.org/1205063002/diff/80001/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc File chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc (right): https://codereview.chromium.org/1205063002/diff/80001/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc#newcode383 chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc:383: if (keyboard_controller) { On 2015/06/25 21:49:28, flackr wrote: > ...
5 years, 6 months ago (2015-06-26 17:22:48 UTC) #14
dzhioev (left Google)
Hello, generally LGTM. However I'm not too familiar wit this code. Could you please double ...
5 years, 6 months ago (2015-06-26 19:31:03 UTC) #15
flackr
On 2015/06/26 17:22:48, bshe wrote: > https://codereview.chromium.org/1205063002/diff/80001/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc > File chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc (right): > > https://codereview.chromium.org/1205063002/diff/80001/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc#newcode383 > ...
5 years, 6 months ago (2015-06-26 19:31:59 UTC) #16
dzhioev (left Google)
Most likely we don't have tests for that =( On Fri, Jun 26, 2015 at ...
5 years, 6 months ago (2015-06-26 19:39:31 UTC) #17
bshe
On 2015/06/26 19:31:03, dzhioev wrote: > Hello, > generally LGTM. However I'm not too familiar ...
5 years, 6 months ago (2015-06-26 21:50:09 UTC) #18
flackr
LGTM
5 years, 6 months ago (2015-06-26 23:22:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1205063002/100001
5 years, 5 months ago (2015-07-02 15:35:14 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:100001)
5 years, 5 months ago (2015-07-02 16:32:11 UTC) #22
commit-bot: I haz the power
5 years, 5 months ago (2015-07-02 16:33:12 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/414c6e51f82e9f1b3285f9cb482865cde3ce2f32
Cr-Commit-Position: refs/heads/master@{#337230}

Powered by Google App Engine
This is Rietveld 408576698