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

Issue 13979003: Win: Display a native bubble (instead of the JS one) after the web signin flow. (Closed)

Created:
7 years, 8 months ago by noms (inactive)
Modified:
7 years, 7 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Win: Display a native bubble (instead of the JS one) after the web signin flow. Part of a 3 CL Voltron, along with: [GTK] https://codereview.chromium.org/14258007 [Mac] https://codereview.chromium.org/13845022/ BUG=119728 TEST=Open Chrome. Delete all your profiles, so that you have a fresh one. Open a new tab, and press the "sign in" link in the top right corner. Sign in. Upon completion, this should show a native popup bubble, anchored off the wrench menu. If you try to log in with the same email in another profile, the bubble should display a sad error message. Check out the issue description for screenshots. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197622

Patch Set 1 #

Patch Set 2 : Updated browser tests #

Patch Set 3 : Rebased patch #

Patch Set 4 : Rebased. #

Patch Set 5 : Deleted unused unit test #

Patch Set 6 : Fixed/reenabled browser tests (hopefully) #

Total comments: 10

Patch Set 7 : Lint + review fixes #

Total comments: 33

Patch Set 8 : merged Bubble/Dialog derived classes #

Total comments: 1

Patch Set 9 : Review fixes #

Total comments: 3

Patch Set 10 : std::string -> string16 #

Total comments: 2

Patch Set 11 : NTP redirects: less is more #

Total comments: 1

Patch Set 12 : #

Total comments: 2

Patch Set 13 : Const things should be const #

Patch Set 14 : rebase ALL the thigns #

Total comments: 6

Patch Set 15 : Rebase #

Patch Set 16 : Remove unused imports. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+491 lines, -441 lines) Patch
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +27 lines, -18 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +1 line, -61 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/sync/one_click_signin_bubble_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +66 lines, -33 lines 0 comments Download
M chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +245 lines, -292 lines 0 comments Download
M chrome/browser/ui/views/sync/one_click_signin_bubble_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +140 lines, -33 lines 1 comment Download
M chrome/test/base/test_browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
bcwhite
Nicely done. A few minor comments. Also, be sure to check the "? errors" link ...
7 years, 8 months ago (2013-04-16 15:21:59 UTC) #1
noms (inactive)
https://codereview.chromium.org/13979003/diff/18001/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): https://codereview.chromium.org/13979003/diff/18001/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode485 chrome/browser/ui/cocoa/browser_window_cocoa.mm:485: ) { On 2013/04/16 15:22:00, bcwhite wrote: > Move ...
7 years, 8 months ago (2013-04-16 17:15:37 UTC) #2
tfarina
Please, make sure to ask for OWNERS of c/b/ui/gtk, c/b/ui/cocoa and c/b/ui/views when ready! My ...
7 years, 8 months ago (2013-04-16 17:25:28 UTC) #3
Roger Tawa OOO till Jul 10th
Looking good Monica. My main question is about the web contents member variable. Please see ...
7 years, 8 months ago (2013-04-17 17:53:25 UTC) #4
noms (inactive)
Merged the Bubble/Dialog classes as discussed, and hopefully fixed all of the other comments. Please ...
7 years, 8 months ago (2013-04-17 20:32:37 UTC) #5
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/13979003/diff/34001/chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc File chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc (right): https://codereview.chromium.org/13979003/diff/34001/chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc#newcode260 chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc:260: (*undo_button)->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON); if !is_sync_dialog_, probably should not create the ...
7 years, 8 months ago (2013-04-17 21:09:17 UTC) #6
noms (inactive)
Hi sky/thakis/erg, Could you please do an owners review? I've split this fix up in ...
7 years, 8 months ago (2013-04-18 17:25:52 UTC) #7
Nico
cocoa/ lgtm One inconsequential question below. https://codereview.chromium.org/13979003/diff/54001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/13979003/diff/54001/chrome/browser/ui/browser_window.h#newcode234 chrome/browser/ui/browser_window.h:234: const std::string& error_message, ...
7 years, 8 months ago (2013-04-18 17:53:28 UTC) #8
noms (inactive)
https://codereview.chromium.org/13979003/diff/54001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/13979003/diff/54001/chrome/browser/ui/browser_window.h#newcode234 chrome/browser/ui/browser_window.h:234: const std::string& error_message, The error_message comes as a utf8 ...
7 years, 8 months ago (2013-04-18 18:08:28 UTC) #9
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/13979003/diff/54001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/13979003/diff/54001/chrome/browser/ui/browser_window.h#newcode234 chrome/browser/ui/browser_window.h:234: const std::string& error_message, On 2013/04/18 18:08:28, Monica Dinculescu wrote: ...
7 years, 8 months ago (2013-04-18 19:04:11 UTC) #10
noms (inactive)
Done. I left the OneClickSigninHelper::SigninFailed to continue returning an std::string, as that's what it gets ...
7 years, 8 months ago (2013-04-19 19:13:00 UTC) #11
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/13979003/diff/39003/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): https://codereview.chromium.org/13979003/diff/39003/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode1406 chrome/browser/ui/sync/one_click_signin_helper.cc:1406: RedirectToNtpOrAppsPage(show_bubble); The sign in code does two redirects to ...
7 years, 8 months ago (2013-04-22 20:49:05 UTC) #12
Elliot Glaysher
gtk lgtm stamp.
7 years, 8 months ago (2013-04-23 18:18:40 UTC) #13
noms (inactive)
https://codereview.chromium.org/13979003/diff/39003/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): https://codereview.chromium.org/13979003/diff/39003/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode1406 chrome/browser/ui/sync/one_click_signin_helper.cc:1406: RedirectToNtpOrAppsPage(show_bubble); Done. (I hope!) On 2013/04/22 20:49:05, Roger Tawa ...
7 years, 8 months ago (2013-04-23 19:21:22 UTC) #14
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/13979003/diff/73001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): https://codereview.chromium.org/13979003/diff/73001/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode979 chrome/browser/ui/sync/one_click_signin_helper.cc:979: Profile::FromBrowserContext(contents->GetBrowserContext()); Can move these variables into the if ...
7 years, 8 months ago (2013-04-23 19:49:12 UTC) #15
noms (inactive)
+sky for views owners
7 years, 8 months ago (2013-04-25 13:59:15 UTC) #16
sky
LGTM https://codereview.chromium.org/13979003/diff/81001/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h File chrome/browser/ui/views/sync/one_click_signin_bubble_view.h (right): https://codereview.chromium.org/13979003/diff/81001/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h#newcode123 chrome/browser/ui/views/sync/one_click_signin_bubble_view.h:123: string16 error_message_; const https://codereview.chromium.org/13979003/diff/81001/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h#newcode132 chrome/browser/ui/views/sync/one_click_signin_bubble_view.h:132: bool is_sync_dialog_; const
7 years, 8 months ago (2013-04-25 16:04:04 UTC) #17
Roger Tawa OOO till Jul 10th
Hi Monica, A few smalls nits below, sorry :-) https://codereview.chromium.org/13979003/diff/89001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/13979003/diff/89001/chrome/browser/ui/browser_window.h#newcode8 chrome/browser/ui/browser_window.h:8: ...
7 years, 8 months ago (2013-04-26 18:28:20 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/13979003/116001
7 years, 7 months ago (2013-04-30 17:20:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/13979003/116001
7 years, 7 months ago (2013-05-01 14:04:18 UTC) #20
commit-bot: I haz the power
Change committed as 197622
7 years, 7 months ago (2013-05-01 15:59:28 UTC) #21
M-A Ruel
7 years, 7 months ago (2013-05-21 17:48:25 UTC) #22
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/13979003/diff/116001/chrome/browser/ui...
File chrome/browser/ui/views/sync/one_click_signin_bubble_view_browsertest.cc
(right):

https://chromiumcodereview.appspot.com/13979003/diff/116001/chrome/browser/ui...
chrome/browser/ui/views/sync/one_click_signin_bubble_view_browsertest.cc:51:
IN_PROC_BROWSER_TEST_F(OneClickSigninBubbleViewBrowserTest, ShowBubble) {
I saw this test fail on a try job for no obvious reason. To me, the name make it
sounds like it requires focus, which would mean it should be an
interactive_ui_test and not a browser_tests.

Powered by Google App Engine
This is Rietveld 408576698