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

Issue 10699013: Add a method to LoginUIService to open the sign in UI in a popup. (Closed)

Created:
8 years, 5 months ago by Munjal (Google)
Modified:
8 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add ability to add/remove observers for login ui shown/closed to LoginUIService. This will be used by the extension API to show login UI in a popup and then obseve when it is closed and respond back to the extension accordingly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146143

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 16

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Total comments: 12

Patch Set 9 : #

Total comments: 8

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -2 lines) Patch
M chrome/browser/ui/webui/signin/login_ui_service.h View 1 2 3 4 5 6 7 8 9 4 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -2 lines 0 comments Download
A chrome/browser/ui/webui/signin/login_ui_service_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +77 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Munjal (Google)
8 years, 5 months ago (2012-06-27 21:15:36 UTC) #1
Munjal (Google)
8 years, 5 months ago (2012-06-27 21:15:53 UTC) #2
Andrew T Wilson (Slow)
John has a conflicting patch on the way, so I think your approach will need ...
8 years, 5 months ago (2012-06-27 22:35:05 UTC) #3
Munjal (Google)
Can you take another look? I merged in John's changes and I also changed the ...
8 years, 5 months ago (2012-07-02 19:18:10 UTC) #4
jam
http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h#newcode875 chrome/common/chrome_notification_types.h:875: NOTIFICATION_LOGIN_UI_CHANGED, who's listening to this notification?
8 years, 5 months ago (2012-07-03 05:52:27 UTC) #5
Andrew T Wilson (Slow)
http://codereview.chromium.org/10699013/diff/9001/chrome/browser/ui/webui/signin/login_ui_service.cc File chrome/browser/ui/webui/signin/login_ui_service.cc (right): http://codereview.chromium.org/10699013/diff/9001/chrome/browser/ui/webui/signin/login_ui_service.cc#newcode52 chrome/browser/ui/webui/signin/login_ui_service.cc:52: void LoginUIService::ShowLoginDialogUI(Browser* browser) { This isn't displaying a dialog ...
8 years, 5 months ago (2012-07-03 17:34:09 UTC) #6
Andrew T Wilson (Slow)
Also, needs a test to show that the notification is actually being sent.
8 years, 5 months ago (2012-07-03 17:36:17 UTC) #7
Munjal (Google)
Working on adding a test. Will publish again when done. http://codereview.chromium.org/10699013/diff/9001/chrome/browser/ui/webui/signin/login_ui_service.cc File chrome/browser/ui/webui/signin/login_ui_service.cc (right): http://codereview.chromium.org/10699013/diff/9001/chrome/browser/ui/webui/signin/login_ui_service.cc#newcode52 ...
8 years, 5 months ago (2012-07-03 17:52:17 UTC) #8
jam
http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h#newcode875 chrome/common/chrome_notification_types.h:875: NOTIFICATION_LOGIN_UI_CHANGED, On 2012/07/03 17:52:17, munjal wrote: > On 2012/07/03 ...
8 years, 5 months ago (2012-07-04 04:25:21 UTC) #9
Munjal (Google)
I added tests now. Please take another look. http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h#newcode875 chrome/common/chrome_notification_types.h:875: NOTIFICATION_LOGIN_UI_CHANGED, ...
8 years, 5 months ago (2012-07-09 17:30:06 UTC) #10
jam
http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h#newcode875 chrome/common/chrome_notification_types.h:875: NOTIFICATION_LOGIN_UI_CHANGED, On 2012/07/09 17:30:06, munjal wrote: > On 2012/07/04 ...
8 years, 5 months ago (2012-07-09 17:35:53 UTC) #11
Munjal (Google)
http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h#newcode875 chrome/common/chrome_notification_types.h:875: NOTIFICATION_LOGIN_UI_CHANGED, On 2012/07/09 17:35:53, John Abd-El-Malek wrote: > On ...
8 years, 5 months ago (2012-07-09 19:24:59 UTC) #12
jam
http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h#newcode875 chrome/common/chrome_notification_types.h:875: NOTIFICATION_LOGIN_UI_CHANGED, On 2012/07/09 19:24:59, munjal wrote: > On 2012/07/09 ...
8 years, 5 months ago (2012-07-09 19:38:13 UTC) #13
Munjal (Google)
http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h#newcode875 chrome/common/chrome_notification_types.h:875: NOTIFICATION_LOGIN_UI_CHANGED, On 2012/07/09 19:38:13, John Abd-El-Malek wrote: > On ...
8 years, 5 months ago (2012-07-09 19:48:54 UTC) #14
Andrew T Wilson (Slow)
Sorry, Forgot to send this last week. http://codereview.chromium.org/10699013/diff/9001/chrome/browser/ui/webui/signin/login_ui_service.cc File chrome/browser/ui/webui/signin/login_ui_service.cc (right): http://codereview.chromium.org/10699013/diff/9001/chrome/browser/ui/webui/signin/login_ui_service.cc#newcode52 chrome/browser/ui/webui/signin/login_ui_service.cc:52: void LoginUIService::ShowLoginDialogUI(Browser* ...
8 years, 5 months ago (2012-07-09 19:52:06 UTC) #15
Andrew T Wilson (Slow)
BTW, John - why do you prefer notifications over listeners/delegates? It just seems like it's ...
8 years, 5 months ago (2012-07-09 19:55:56 UTC) #16
jam
On 2012/07/09 19:55:56, Andrew T Wilson wrote: > BTW, John - why do you prefer ...
8 years, 5 months ago (2012-07-09 21:02:42 UTC) #17
jam
http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10699013/diff/9001/chrome/common/chrome_notification_types.h#newcode875 chrome/common/chrome_notification_types.h:875: NOTIFICATION_LOGIN_UI_CHANGED, On 2012/07/09 19:48:54, munjal wrote: > On 2012/07/09 ...
8 years, 5 months ago (2012-07-09 21:02:49 UTC) #18
Munjal (Google)
http://codereview.chromium.org/10699013/diff/9001/chrome/browser/ui/webui/signin/login_ui_service.cc File chrome/browser/ui/webui/signin/login_ui_service.cc (right): http://codereview.chromium.org/10699013/diff/9001/chrome/browser/ui/webui/signin/login_ui_service.cc#newcode52 chrome/browser/ui/webui/signin/login_ui_service.cc:52: void LoginUIService::ShowLoginDialogUI(Browser* browser) { On 2012/07/09 19:52:06, Andrew T ...
8 years, 5 months ago (2012-07-09 21:13:25 UTC) #19
Munjal (Google)
I am fine with changing this to using ObserverList and adding two methods to LoginUIService, ...
8 years, 5 months ago (2012-07-09 21:20:18 UTC) #20
Munjal (Google)
I changed to using an observer list, and updated the tests. Please take another look.
8 years, 5 months ago (2012-07-10 01:03:01 UTC) #21
jam
http://codereview.chromium.org/10699013/diff/21004/chrome/browser/ui/webui/signin/login_ui_service.cc File chrome/browser/ui/webui/signin/login_ui_service.cc (right): http://codereview.chromium.org/10699013/diff/21004/chrome/browser/ui/webui/signin/login_ui_service.cc#newcode17 chrome/browser/ui/webui/signin/login_ui_service.cc:17: if (o) why do you need to handle someone ...
8 years, 5 months ago (2012-07-10 16:13:07 UTC) #22
Munjal (Google)
http://codereview.chromium.org/10699013/diff/21004/chrome/browser/ui/webui/signin/login_ui_service.cc File chrome/browser/ui/webui/signin/login_ui_service.cc (right): http://codereview.chromium.org/10699013/diff/21004/chrome/browser/ui/webui/signin/login_ui_service.cc#newcode17 chrome/browser/ui/webui/signin/login_ui_service.cc:17: if (o) On 2012/07/10 16:13:07, John Abd-El-Malek wrote: > ...
8 years, 5 months ago (2012-07-10 16:46:15 UTC) #23
jam
lgtm
8 years, 5 months ago (2012-07-10 16:54:45 UTC) #24
Andrew T Wilson (Slow)
LGTM, with a few nits. http://codereview.chromium.org/10699013/diff/9003/chrome/browser/ui/webui/signin/login_ui_service.cc File chrome/browser/ui/webui/signin/login_ui_service.cc (right): http://codereview.chromium.org/10699013/diff/9003/chrome/browser/ui/webui/signin/login_ui_service.cc#newcode35 chrome/browser/ui/webui/signin/login_ui_service.cc:35: ui_ = NULL; I ...
8 years, 5 months ago (2012-07-10 17:37:43 UTC) #25
Munjal (Google)
+estade for OWNERS http://codereview.chromium.org/10699013/diff/9003/chrome/browser/ui/webui/signin/login_ui_service.cc File chrome/browser/ui/webui/signin/login_ui_service.cc (right): http://codereview.chromium.org/10699013/diff/9003/chrome/browser/ui/webui/signin/login_ui_service.cc#newcode35 chrome/browser/ui/webui/signin/login_ui_service.cc:35: ui_ = NULL; On 2012/07/10 17:37:43, ...
8 years, 5 months ago (2012-07-10 18:02:58 UTC) #26
James Hawkins
http://codereview.chromium.org/10699013/diff/31002/chrome/browser/ui/webui/signin/login_ui_service.h File chrome/browser/ui/webui/signin/login_ui_service.h (right): http://codereview.chromium.org/10699013/diff/31002/chrome/browser/ui/webui/signin/login_ui_service.h#newcode33 chrome/browser/ui/webui/signin/login_ui_service.h:33: class Observer { nit: Document class. http://codereview.chromium.org/10699013/diff/31002/chrome/browser/ui/webui/signin/login_ui_service.h#newcode35 chrome/browser/ui/webui/signin/login_ui_service.h:35: virtual ...
8 years, 5 months ago (2012-07-10 19:25:22 UTC) #27
Munjal (Google)
http://codereview.chromium.org/10699013/diff/31002/chrome/browser/ui/webui/signin/login_ui_service.h File chrome/browser/ui/webui/signin/login_ui_service.h (right): http://codereview.chromium.org/10699013/diff/31002/chrome/browser/ui/webui/signin/login_ui_service.h#newcode33 chrome/browser/ui/webui/signin/login_ui_service.h:33: class Observer { On 2012/07/10 19:25:22, James Hawkins wrote: ...
8 years, 5 months ago (2012-07-10 20:36:24 UTC) #28
James Hawkins
Who is going to be using this new functionality? It's currently deadcode. http://codereview.chromium.org/10699013/diff/29003/chrome/browser/ui/webui/signin/login_ui_service.h File chrome/browser/ui/webui/signin/login_ui_service.h ...
8 years, 5 months ago (2012-07-10 20:41:15 UTC) #29
Munjal (Google)
http://codereview.chromium.org/10699013/diff/29003/chrome/browser/ui/webui/signin/login_ui_service.h File chrome/browser/ui/webui/signin/login_ui_service.h (right): http://codereview.chromium.org/10699013/diff/29003/chrome/browser/ui/webui/signin/login_ui_service.h#newcode37 chrome/browser/ui/webui/signin/login_ui_service.h:37: virtual void OnLoginUIShown(LoginUI* ui) = 0; On 2012/07/10 20:41:15, ...
8 years, 5 months ago (2012-07-10 20:53:59 UTC) #30
James Hawkins
LGTM In general I'm not a fan of CLs that add code w/out usage, but ...
8 years, 5 months ago (2012-07-10 20:59:59 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/munjal@chromium.org/10699013/29005
8 years, 5 months ago (2012-07-10 21:07:01 UTC) #32
jam
nti: update the change description
8 years, 5 months ago (2012-07-10 22:27:29 UTC) #33
commit-bot: I haz the power
Try job failure for 10699013-29005 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-10 22:37:20 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/munjal@chromium.org/10699013/32005
8 years, 5 months ago (2012-07-11 17:02:33 UTC) #35
commit-bot: I haz the power
8 years, 5 months ago (2012-07-11 17:56:17 UTC) #36
Change committed as 146143

Powered by Google App Engine
This is Rietveld 408576698