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

Issue 6973029: Integrate WebUI Login with cros. (Closed)

Created:
9 years, 7 months ago by rharrison
Modified:
9 years, 6 months ago
CC:
chromium-reviews, nkostylev+cc_chromium.org, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, davemoore+watch_chromium.org, bryeung, Dmitry Polukhin
Visibility:
Public.

Description

Integrate WebUI Login with cros. This patch covers integrating the the WebUI based login with cros, so that when --dom-login is passed in on boot the WebUI login screen is used, keyboard comes up and the user can login. I have refactored the WebUI login code to not use a subclass of the Browser class. I have removed the unneeded DOMBrowser* classes. This work was based off a combination of the BackgroundView and the TouchBrowserFrameView. If there is comments or variable names that betray this please let me know. I have endevoured to update the comments, but significant portions of code were pulled in. Since both of the TouchBrowserFrameView and WebUILoginView have common code for having a a touch keyboard there is some refactoring to be done that will remove duplicated code between the two. This will be dealt with in a follow on CL. The animation of the keyboard has not been included in this CL, mostly because I was having issues getting it to correctly size and this CL is pretty large already. This will be resolved in a follow on CL. I am also converting from the use of DOM to WebUI at the moment, so some of the new code uses WebUI instead of DOM. I will be uploading a follow on CL that finishes this conversion. This CL depends on http://gerrit.chromium.org/gerrit/706 and http://gerrit.chromium.org/gerrit/759 landing before it to work correctly. It also depends on http://codereview.chromium.org/7014021/ to build. Patch from Ryan Harrison <rharrison@chromium.org>; BUG=none TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86659

Patch Set 1 #

Patch Set 2 : Implemented login screen using widget #

Total comments: 62

Patch Set 3 : Updated code in response to review comments #

Total comments: 15

Patch Set 4 : Resolved more issues pointed out by reviewers #

Patch Set 5 : Removed ResetXCursor and did_paint_and fixed segfault in WebUILoginView #

Total comments: 6

Patch Set 6 : Updated CL in response to sky's comments #

Patch Set 7 : Fixed patch staleness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+472 lines, -484 lines) Patch
D chrome/browser/chromeos/frame/dom_browser.h View 1 1 chunk +0 lines, -39 lines 0 comments Download
D chrome/browser/chromeos/frame/dom_browser.cc View 1 1 chunk +0 lines, -32 lines 0 comments Download
M chrome/browser/chromeos/frame/dom_browser_view.h View 1 1 chunk +0 lines, -72 lines 0 comments Download
D chrome/browser/chromeos/frame/dom_browser_view.cc View 1 1 chunk +0 lines, -109 lines 0 comments Download
D chrome/browser/chromeos/frame/dom_browser_view_layout.h View 1 1 chunk +0 lines, -77 lines 0 comments Download
D chrome/browser/chromeos/frame/dom_browser_view_layout.cc View 1 1 chunk +0 lines, -97 lines 0 comments Download
M chrome/browser/chromeos/login/background_view.h View 1 2 3 4 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/background_view.cc View 1 2 3 4 6 chunks +0 lines, -28 lines 0 comments Download
M chrome/browser/chromeos/login/dom_login_display.h View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/dom_login_display.cc View 1 2 3 5 chunks +26 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/dom_login_display_host.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/dom_login_display_host.cc View 1 2 2 chunks +16 lines, -8 lines 0 comments Download
A chrome/browser/chromeos/login/webui_login_view.h View 1 2 3 4 5 1 chunk +129 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/webui_login_view.cc View 1 2 3 4 5 1 chunk +282 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_input_api.cc View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 3 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
rharrison
9 years, 7 months ago (2011-05-12 15:59:52 UTC) #1
sky
When you list multiple reviewers please indicate what you expect each reviewer to look at. ...
9 years, 7 months ago (2011-05-12 16:30:23 UTC) #2
rharrison
On 2011/05/12 16:30:23, sky wrote: > When you list multiple reviewers please indicate what you ...
9 years, 7 months ago (2011-05-12 16:53:19 UTC) #3
sky
Why do we need to add these checks? In fact why are we subclassing Browser ...
9 years, 7 months ago (2011-05-12 18:18:52 UTC) #4
Ben Goodger (Google)
Indeed. It seems like the WebUI based login flow would be best served by creating ...
9 years, 7 months ago (2011-05-12 18:20:50 UTC) #5
rharrison
On 2011/05/12 18:20:50, Ben Goodger wrote: > Indeed. It seems like the WebUI based login ...
9 years, 7 months ago (2011-05-12 18:59:57 UTC) #6
Ben Goodger (Google)
What challenges did you run into? Can't you just embed the keyboard on the new ...
9 years, 7 months ago (2011-05-12 19:41:49 UTC) #7
rharrison
The keyboard is implemented as an extension embedded in the touch browser frame and I ...
9 years, 7 months ago (2011-05-12 19:53:38 UTC) #8
Ben Goodger (Google)
On 2011/05/12 19:53:38, rharrison wrote: > The keyboard is implemented as an extension embedded in ...
9 years, 7 months ago (2011-05-12 21:24:12 UTC) #9
Nikita (slow)
Ryan, as long as keyboard is a component extension, it will work on sign in ...
9 years, 7 months ago (2011-05-13 06:12:50 UTC) #10
rharrison
On 2011/05/13 06:12:50, Nikita Kostylev wrote: > Ryan, > as long as keyboard is a ...
9 years, 7 months ago (2011-05-17 23:35:44 UTC) #11
sky
On Tue, May 17, 2011 at 4:35 PM, <rharrison@chromium.org> wrote: > On 2011/05/13 06:12:50, Nikita ...
9 years, 7 months ago (2011-05-18 15:08:50 UTC) #12
rharrison
I have uploaded the refactored version of the code. This removes all of the DOMBrowser ...
9 years, 7 months ago (2011-05-18 16:44:11 UTC) #13
Ben Goodger (Google)
This is an awesome improvement thanks for doing it! You should find this code is ...
9 years, 7 months ago (2011-05-18 16:50:51 UTC) #14
oshima
http://codereview.chromium.org/6973029/diff/9001/chrome/browser/chromeos/login/dom_login_display.cc File chrome/browser/chromeos/login/dom_login_display.cc (right): http://codereview.chromium.org/6973029/diff/9001/chrome/browser/chromeos/login/dom_login_display.cc#newcode22 chrome/browser/chromeos/login/dom_login_display.cc:22: webui_login_window_->Close(); if you want to keep scoped_ptr, you have ...
9 years, 7 months ago (2011-05-18 18:24:54 UTC) #15
Nikita (slow)
http://codereview.chromium.org/6973029/diff/9001/chrome/browser/chromeos/login/dom_login_display.h File chrome/browser/chromeos/login/dom_login_display.h (right): http://codereview.chromium.org/6973029/diff/9001/chrome/browser/chromeos/login/dom_login_display.h#newcode52 chrome/browser/chromeos/login/dom_login_display.h:52: static views::Widget* GetCurrentLoginWindow(); Are we planning to have multiple ...
9 years, 7 months ago (2011-05-18 20:22:12 UTC) #16
rharrison
http://codereview.chromium.org/6973029/diff/9001/chrome/browser/chromeos/login/dom_login_display.cc File chrome/browser/chromeos/login/dom_login_display.cc (right): http://codereview.chromium.org/6973029/diff/9001/chrome/browser/chromeos/login/dom_login_display.cc#newcode22 chrome/browser/chromeos/login/dom_login_display.cc:22: webui_login_window_->Close(); On 2011/05/18 18:24:54, oshima wrote: > if you ...
9 years, 7 months ago (2011-05-19 00:31:43 UTC) #17
oshima
http://codereview.chromium.org/6973029/diff/11012/chrome/browser/chromeos/login/dom_login_display.cc File chrome/browser/chromeos/login/dom_login_display.cc (right): http://codereview.chromium.org/6973029/diff/11012/chrome/browser/chromeos/login/dom_login_display.cc#newcode49 chrome/browser/chromeos/login/dom_login_display.cc:49: } nuke {} http://codereview.chromium.org/6973029/diff/11012/chrome/browser/chromeos/login/dom_login_display.cc#newcode124 chrome/browser/chromeos/login/dom_login_display.cc:124: webui_login_window_(NULL) { webui_login_view_(NULL) http://codereview.chromium.org/6973029/diff/11012/chrome/browser/chromeos/login/dom_login_display.cc#newcode125 ...
9 years, 7 months ago (2011-05-19 01:45:18 UTC) #18
Nikita (slow)
http://codereview.chromium.org/6973029/diff/9001/chrome/browser/chromeos/login/webui_login_view.cc File chrome/browser/chromeos/login/webui_login_view.cc (right): http://codereview.chromium.org/6973029/diff/9001/chrome/browser/chromeos/login/webui_login_view.cc#newcode86 chrome/browser/chromeos/login/webui_login_view.cc:86: if (!profile_->GetExtensionService()) { On 2011/05/19 00:31:43, rharrison wrote: > ...
9 years, 7 months ago (2011-05-19 03:53:33 UTC) #19
Nikita (slow)
http://codereview.chromium.org/6973029/diff/9001/chrome/browser/chromeos/login/dom_login_display.h File chrome/browser/chromeos/login/dom_login_display.h (right): http://codereview.chromium.org/6973029/diff/9001/chrome/browser/chromeos/login/dom_login_display.h#newcode52 chrome/browser/chromeos/login/dom_login_display.h:52: static views::Widget* GetCurrentLoginWindow(); On 2011/05/19 00:31:43, rharrison wrote: > ...
9 years, 7 months ago (2011-05-19 03:57:21 UTC) #20
rharrison
I have made changes for most of the comments. I have sent an email to ...
9 years, 7 months ago (2011-05-19 16:45:27 UTC) #21
oshima
LGTM on my bits. Pleas address Nikita's comments for extension before submit. WM/Cursor change isn't ...
9 years, 7 months ago (2011-05-19 17:51:41 UTC) #22
Ben Goodger (Google)
Typically anyone that comments with a request should give LGTM to acknowledge their request was ...
9 years, 7 months ago (2011-05-19 19:18:12 UTC) #23
rharrison
Removed unneeded code and fixed a segfault that was occurring due to me forgetting it ...
9 years, 7 months ago (2011-05-20 18:02:57 UTC) #24
oshima
LGTM On Fri, May 20, 2011 at 11:02 AM, <rharrison@chromium.org> wrote: > Removed unneeded code ...
9 years, 7 months ago (2011-05-20 21:33:47 UTC) #25
Nikita (slow)
LGTM
9 years, 7 months ago (2011-05-22 20:17:27 UTC) #26
sky
http://codereview.chromium.org/6973029/diff/20001/chrome/browser/chromeos/login/background_view.cc File chrome/browser/chromeos/login/background_view.cc (left): http://codereview.chromium.org/6973029/diff/20001/chrome/browser/chromeos/login/background_view.cc#oldcode419 chrome/browser/chromeos/login/background_view.cc:419: params.push_back(did_paint_ ? 1 : 0); Did you also update ...
9 years, 7 months ago (2011-05-23 15:16:38 UTC) #27
rharrison
http://codereview.chromium.org/6973029/diff/20001/chrome/browser/chromeos/login/background_view.cc File chrome/browser/chromeos/login/background_view.cc (left): http://codereview.chromium.org/6973029/diff/20001/chrome/browser/chromeos/login/background_view.cc#oldcode419 chrome/browser/chromeos/login/background_view.cc:419: params.push_back(did_paint_ ? 1 : 0); On 2011/05/23 15:16:39, sky ...
9 years, 7 months ago (2011-05-25 02:58:54 UTC) #28
sky
LGTM
9 years, 7 months ago (2011-05-25 15:44:36 UTC) #29
commit-bot: I haz the power
9 years, 7 months ago (2011-05-25 15:51:30 UTC) #30
Can't apply patch for file chrome/browser/chromeos/frame/dom_browser_view.h.
patching file chrome/browser/chromeos/frame/dom_browser_view.h
svn: warning: 'chrome/browser/chromeos/frame/dom_browser_view.h' not found
svn: Can't open file 'chrome/browser/chromeos/frame/dom_browser_view.h': No such
file or directory

Powered by Google App Engine
This is Rietveld 408576698