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

Issue 10332185: Update behavior of one-click infobar to remove modal dialog, add "undo". (Closed)

Created:
8 years, 7 months ago by Roger Tawa OOO till Jul 10th
Modified:
8 years, 6 months ago
CC:
chromium-reviews, jennb, jianli, Dmitry Titov, dcheng, Andrei, tfarina
Visibility:
Public.

Description

Update behavior of one-click infobar to remove modal dialog, add "undo". There are many non-signin-related files in this CL because of a method signature change. The significant changes are in the one_click_* files. BUG=125253 TEST=See bug description for complete UX spec. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139365

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Make linux work, including tests #

Patch Set 4 : Fixes for mac #

Patch Set 5 : Fix mac unit tests #

Patch Set 6 : Don't call ok in tests of advanced link #

Total comments: 27

Patch Set 7 : rebase #

Patch Set 8 : Address Fred's comments, fix helper unit tests #

Patch Set 9 : rebase #

Patch Set 10 : Fix mac unittest compile #

Patch Set 11 : Minor comment fixes #

Total comments: 8

Patch Set 12 : rebase #

Patch Set 13 : Address review comments #

Patch Set 14 : Fix linux/mac compile errors #

Patch Set 15 : rebase #

Patch Set 16 : Fix linux compile error #

Patch Set 17 : Fix mac compiler error #

Total comments: 2

Patch Set 18 : rebase #

Patch Set 19 : Add enum #

Total comments: 24

Patch Set 20 : A few more mac fixes #

Total comments: 2

Patch Set 21 : Make GTK ok and undo buttons the same size horizontally #

Total comments: 69

Patch Set 22 : rebase #

Patch Set 23 : Address review comments #

Total comments: 2

Patch Set 24 : Address review comments #

Total comments: 8

Patch Set 25 : Address review comments #

Total comments: 4

Patch Set 26 : rebase #

Total comments: 2

Patch Set 27 : Address some nits #

Patch Set 28 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+518 lines, -309 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/app/chromium_strings.grd View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +9 lines, -4 lines 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 16 17 18 1 chunk +1 line, -2 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 14 15 16 17 18 19 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/one_click_signin_bubble_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +14 lines, -44 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 14 15 16 17 18 1 chunk +1 line, -2 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 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +20 lines, -13 lines 0 comments Download
M chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +32 lines, -34 lines 0 comments Download
M chrome/browser/ui/gtk/one_click_signin_bubble_gtk_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +30 lines, -30 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -2 lines 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 16 17 18 19 20 21 22 23 24 25 4 chunks +24 lines, -27 lines 0 comments Download
A 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 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +154 lines, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +6 lines, -5 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 14 15 16 17 18 1 chunk +1 line, -2 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 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -4 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 16 17 18 19 20 21 22 23 24 25 26 4 chunks +22 lines, -24 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 15 16 17 18 19 20 21 22 23 8 chunks +57 lines, -42 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 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +85 lines, -39 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +7 lines, -0 lines 0 comments 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 16 17 18 1 chunk +1 line, -2 lines 0 comments Download
M chrome/test/functional/PYAUTO_TESTS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
akalin
Taking a look at this. I'll patch this in and get it working (compiling + ...
8 years, 7 months ago (2012-05-16 23:00:12 UTC) #1
akalin
On 2012/05/16 23:00:12, akalin wrote: > Taking a look at this. I'll patch this in ...
8 years, 7 months ago (2012-05-16 23:36:20 UTC) #2
akalin
On second thought, it might be easier to just do this as a code review, ...
8 years, 7 months ago (2012-05-17 00:39:24 UTC) #3
Roger Tawa OOO till Jul 10th
Thanks Fred. Still working on it, but please take another look. Passing through the try ...
8 years, 7 months ago (2012-05-17 21:17:37 UTC) #4
akalin
http://codereview.chromium.org/10332185/diff/8003/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode144 > chrome/browser/ui/sync/one_click_signin_helper.cc:144: profile, session_index, > email, password, use_default_settings)); > On 2012/05/17 00:39:24, akalin wrote: ...
8 years, 7 months ago (2012-05-18 17:50:28 UTC) #5
akalin
looks good, but let's figure out the callback typedef issue. http://codereview.chromium.org/10332185/diff/18002/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10332185/diff/18002/chrome/app/generated_resources.grd#newcode9362 ...
8 years, 7 months ago (2012-05-18 17:57:03 UTC) #6
Roger Tawa OOO till Jul 10th
Hi Fred, All mac and linux builds are now compiling. Addressed your comments, please take ...
8 years, 7 months ago (2012-05-23 17:13:02 UTC) #7
akalin
http://codereview.chromium.org/10332185/diff/35/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): http://codereview.chromium.org/10332185/diff/35/chrome/browser/ui/browser_window.h#newcode57 chrome/browser/ui/browser_window.h:57: typedef base::Callback<void(bool)> OneClickSigninBubbleCallback; I'm sorry to be a stickler ...
8 years, 7 months ago (2012-05-23 21:15:47 UTC) #8
Roger Tawa OOO till Jul 10th
http://codereview.chromium.org/10332185/diff/35/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): http://codereview.chromium.org/10332185/diff/35/chrome/browser/ui/browser_window.h#newcode57 chrome/browser/ui/browser_window.h:57: typedef base::Callback<void(bool)> OneClickSigninBubbleCallback; On 2012/05/23 21:15:48, akalin wrote: > ...
8 years, 7 months ago (2012-05-24 14:38:59 UTC) #9
akalin
On Thu, May 24, 2012 at 7:38 AM, <rogerta@chromium.org> wrote: > However, I don't think ...
8 years, 7 months ago (2012-05-24 17:14:13 UTC) #10
akalin
LGTM after nits http://codereview.chromium.org/10332185/diff/32001/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): http://codereview.chromium.org/10332185/diff/32001/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode460 chrome/browser/ui/cocoa/browser_window_cocoa.mm:460: start_sync_callback:start_sync_callback]; indent to line up :s ...
8 years, 7 months ago (2012-05-24 18:42:04 UTC) #11
Roger Tawa OOO till Jul 10th
Thanks Fred, please take another look. http://codereview.chromium.org/10332185/diff/32001/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): http://codereview.chromium.org/10332185/diff/32001/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode460 chrome/browser/ui/cocoa/browser_window_cocoa.mm:460: start_sync_callback:start_sync_callback]; On 2012/05/24 ...
8 years, 7 months ago (2012-05-24 19:08:33 UTC) #12
Roger Tawa OOO till Jul 10th
Hi Elliot, Peter, Can you please do owner reviews for code under browser\ui? Elliot: please ...
8 years, 7 months ago (2012-05-24 20:06:27 UTC) #13
Elliot Glaysher
gtk lgtm http://codereview.chromium.org/10332185/diff/35001/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc File chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc (right): http://codereview.chromium.org/10332185/diff/35001/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc#newcode73 chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc:73: // size and look kind of ugly. ...
8 years, 7 months ago (2012-05-24 20:10:56 UTC) #14
akalin
still lgtm On 2012/05/24 20:10:56, Elliot Glaysher wrote: > gtk lgtm > > http://codereview.chromium.org/10332185/diff/35001/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc > ...
8 years, 7 months ago (2012-05-24 20:37:53 UTC) #15
Roger Tawa OOO till Jul 10th
Thanks Elliot, that's exactly what I was looking for. Please take another look if you ...
8 years, 7 months ago (2012-05-24 20:50:26 UTC) #16
Peter Kasting
Mostly nits but there are a few real issues mixed in. http://codereview.chromium.org/10332185/diff/39004/chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h File chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h (right): ...
8 years, 7 months ago (2012-05-24 22:25:17 UTC) #17
Roger Tawa OOO till Jul 10th
Thanks Peter, please take another look. http://codereview.chromium.org/10332185/diff/39004/chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h File chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h (right): http://codereview.chromium.org/10332185/diff/39004/chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h#newcode22 chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h:22: // TODO(akalin): learnMoreLink_ ...
8 years, 7 months ago (2012-05-25 16:04:08 UTC) #18
Peter Kasting
http://codereview.chromium.org/10332185/diff/39004/chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm File chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm (right): http://codereview.chromium.org/10332185/diff/39004/chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm#newcode67 chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm:67: OnStartSync( On 2012/05/25 16:04:08, Roger Tawa wrote: > On ...
8 years, 7 months ago (2012-05-25 16:58:05 UTC) #19
Roger Tawa OOO till Jul 10th
Hi Peter, please take another look. http://codereview.chromium.org/10332185/diff/39004/chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm File chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm (right): http://codereview.chromium.org/10332185/diff/39004/chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm#newcode67 chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm:67: OnStartSync( On 2012/05/25 ...
8 years, 7 months ago (2012-05-25 18:49:51 UTC) #20
Peter Kasting
LGTM http://codereview.chromium.org/10332185/diff/36038/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h File chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h (right): http://codereview.chromium.org/10332185/diff/36038/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h#newcode50 chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h:50: FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleGtkTest, ShowAndOK); Nit: These go atop private section ...
8 years, 7 months ago (2012-05-25 21:09:32 UTC) #21
Roger Tawa OOO till Jul 10th
Thanks Peter. Comment addressed, changes uploaded. http://codereview.chromium.org/10332185/diff/36038/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h File chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h (right): http://codereview.chromium.org/10332185/diff/36038/chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h#newcode50 chrome/browser/ui/gtk/one_click_signin_bubble_gtk.h:50: FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleGtkTest, ShowAndOK); On ...
8 years, 7 months ago (2012-05-26 01:56:01 UTC) #22
tfarina
http://codereview.chromium.org/10332185/diff/43004/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h File chrome/browser/ui/views/sync/one_click_signin_bubble_view.h (right): http://codereview.chromium.org/10332185/diff/43004/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h#newcode53 chrome/browser/ui/views/sync/one_click_signin_bubble_view.h:53: // Creates a BookmarkBubbleView. nit: Creates a OneClickSigninBubbleView. http://codereview.chromium.org/10332185/diff/43004/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h#newcode83 ...
8 years, 7 months ago (2012-05-26 14:54:50 UTC) #23
tfarina
http://codereview.chromium.org/10332185/diff/44001/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc File chrome/browser/ui/sync/one_click_signin_helper_unittest.cc (right): http://codereview.chromium.org/10332185/diff/44001/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc#newcode28 chrome/browser/ui/sync/one_click_signin_helper_unittest.cc:28: public: nit: indent one space.
8 years, 6 months ago (2012-05-28 16:06:10 UTC) #24
Roger Tawa OOO till Jul 10th
Thanks Tiago. http://codereview.chromium.org/10332185/diff/43004/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h File chrome/browser/ui/views/sync/one_click_signin_bubble_view.h (right): http://codereview.chromium.org/10332185/diff/43004/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h#newcode53 chrome/browser/ui/views/sync/one_click_signin_bubble_view.h:53: // Creates a BookmarkBubbleView. On 2012/05/26 14:54:50, ...
8 years, 6 months ago (2012-05-28 17:10:00 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/10332185/33073
8 years, 6 months ago (2012-05-29 17:37:49 UTC) #26
commit-bot: I haz the power
8 years, 6 months ago (2012-05-29 20:40:14 UTC) #27
Change committed as 139365

Powered by Google App Engine
This is Rietveld 408576698