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

Issue 246393004: Password bubble: Introduce a command to open the bubble. (Closed)

Created:
6 years, 8 months ago by Mike West
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Password bubble: ManagePasswordsIconView is now a BubbleIconView. This CL introduces a new browser command to open the Manage Passwords bubble, and converts the ManagePasswordsIconView class into a subclass of BubbleIconView, which uses the new command to control the bubble's state. This allows us to more easily test the view and the UI controller, as each object's job is now more clearly defined (and the view is now doing a good deal less work), and to independently verify that the command is doing the right thing. After this CL, we'll (finally!) have something approaching reasonable test coverage for the core of the views code. BUG=365678 TBR=cpu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266859

Patch Set 1 #

Total comments: 2

Patch Set 2 : Feedback. #

Patch Set 3 : Test. #

Total comments: 3

Patch Set 4 : The bigger picture. #

Total comments: 44

Patch Set 5 : Feedback. #

Patch Set 6 : Mac. #

Total comments: 7

Patch Set 7 : Feedback. #

Patch Set 8 : Fix. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+433 lines, -66 lines) Patch
M chrome/app/chrome_command_ids.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_icon.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_icon.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_icon_mock.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_icon_mock.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 3 4 5 6 7 3 chunks +31 lines, -1 line 1 comment Download
A chrome/browser/ui/views/passwords/manage_passwords_bubble_view_browsertest.cc View 1 2 3 4 5 6 1 chunk +128 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_icon_view.h View 1 2 3 4 5 6 1 chunk +29 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc View 1 2 3 4 3 chunks +32 lines, -46 lines 0 comments Download
A chrome/browser/ui/views/passwords/manage_passwords_icon_view_browsertest.cc View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/passwords/manage_passwords_view_test.h View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/passwords/manage_passwords_view_test.cc View 1 2 3 4 5 6 1 chunk +73 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 38 (0 generated)
Mike West
Hey Markus and Vaclav! Can you take a look at this WIP CL? I have ...
6 years, 8 months ago (2014-04-22 14:18:21 UTC) #1
Mike West
On 2014/04/22 14:18:21, Mike West wrote: > Hey Markus and Vaclav! > > Can you ...
6 years, 8 months ago (2014-04-22 14:19:17 UTC) #2
vabr (Chromium)
https://codereview.chromium.org/246393004/diff/1/chrome/browser/ui/passwords/manage_passwords_bubble.h File chrome/browser/ui/passwords/manage_passwords_bubble.h (right): https://codereview.chromium.org/246393004/diff/1/chrome/browser/ui/passwords/manage_passwords_bubble.h#newcode30 chrome/browser/ui/passwords/manage_passwords_bubble.h:30: virtual ~ManagePasswordsBubble(); Seems like the destructor is the only ...
6 years, 8 months ago (2014-04-22 14:32:06 UTC) #3
Mike West
I've added a simple test to ensure that the command is correctly tied to the ...
6 years, 8 months ago (2014-04-23 10:01:46 UTC) #4
vabr (Chromium)
LGTM, thanks for the test! Vaclav https://codereview.chromium.org/246393004/diff/30001/chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc File chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc (right): https://codereview.chromium.org/246393004/diff/30001/chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc#newcode50 chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc:50: show_bubble_count_++; optional nit: ...
6 years, 8 months ago (2014-04-23 10:22:31 UTC) #5
Mike West
Thanks for taking a pass over the code, Vaclav. Hello, OWNERS I'm just adding to ...
6 years, 8 months ago (2014-04-23 10:59:12 UTC) #6
sky
https://codereview.chromium.org/246393004/diff/30001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/246393004/diff/30001/chrome/browser/ui/browser_window.h#newcode239 chrome/browser/ui/browser_window.h:239: virtual void ShowManagePasswordsBubble(content::WebContents* contents) = 0; Do you really ...
6 years, 8 months ago (2014-04-23 17:14:04 UTC) #7
Mike West
Thanks for taking a look! https://codereview.chromium.org/246393004/diff/30001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/246393004/diff/30001/chrome/browser/ui/browser_window.h#newcode239 chrome/browser/ui/browser_window.h:239: virtual void ShowManagePasswordsBubble(content::WebContents* contents) ...
6 years, 8 months ago (2014-04-23 17:35:21 UTC) #8
Peter Kasting
On 2014/04/23 17:35:21, Mike West wrote: > I was following the Translate and Bookmark examples; ...
6 years, 8 months ago (2014-04-23 17:59:50 UTC) #9
Mike West
On 2014/04/23 17:59:50, Peter Kasting wrote: > On 2014/04/23 17:35:21, Mike West wrote: > > ...
6 years, 8 months ago (2014-04-24 07:30:38 UTC) #10
Peter Kasting
Your description sounds like an overall improvement. My biggest issue with a lot of the ...
6 years, 8 months ago (2014-04-24 07:48:01 UTC) #11
Mike West
On 2014/04/24 07:48:01, Peter Kasting wrote: > Your description sounds like an overall improvement. > ...
6 years, 8 months ago (2014-04-24 08:10:03 UTC) #12
Mike West
Hi Peter, would you mind taking another look at this CL? I've fleshed out the ...
6 years, 8 months ago (2014-04-25 14:24:31 UTC) #13
vabr (Chromium)
The current state of the CL makes sense to me. A couple of nits and ...
6 years, 8 months ago (2014-04-25 15:26:16 UTC) #14
Peter Kasting
https://codereview.chromium.org/246393004/diff/70001/chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc File chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc (right): https://codereview.chromium.org/246393004/diff/70001/chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc#newcode7 chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc:7: #include "base/strings/utf_string_conversions.h" Woooooww. Surprised this ever compiled... https://codereview.chromium.org/246393004/diff/70001/chrome/browser/ui/views/location_bar/location_bar_view.cc File ...
6 years, 8 months ago (2014-04-25 22:12:01 UTC) #15
Mike West
Thanks Peter and Vaclav. Another pass is up. Markus, it'd be great if you could ...
6 years, 7 months ago (2014-04-28 10:52:55 UTC) #16
vabr (Chromium)
Still LGTM, with one comment. Cheers, Vaclav https://codereview.chromium.org/246393004/diff/70001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/246393004/diff/70001/chrome/chrome_tests.gypi#newcode105 chrome/chrome_tests.gypi:105: 'browser/ui/passwords/manage_passwords_bubble_ui_controller_mock.cc', On ...
6 years, 7 months ago (2014-04-28 12:59:34 UTC) #17
Peter Kasting
LGTM https://codereview.chromium.org/246393004/diff/70001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc File chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc (right): https://codereview.chromium.org/246393004/diff/70001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc#newcode77 chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc:77: On 2014/04/28 10:52:56, Mike West wrote: > On ...
6 years, 7 months ago (2014-04-28 20:07:14 UTC) #18
Mike West
Thanks Peter! Markus, friendly ping. https://codereview.chromium.org/246393004/diff/70001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/246393004/diff/70001/chrome/chrome_tests.gypi#newcode105 chrome/chrome_tests.gypi:105: 'browser/ui/passwords/manage_passwords_bubble_ui_controller_mock.cc', On 2014/04/28 12:59:35, ...
6 years, 7 months ago (2014-04-29 06:47:18 UTC) #19
markusheintz_
LGTM
6 years, 7 months ago (2014-04-29 08:01:35 UTC) #20
markusheintz_
LGTM
6 years, 7 months ago (2014-04-29 08:09:16 UTC) #21
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 7 months ago (2014-04-29 08:16:03 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/246393004/130001
6 years, 7 months ago (2014-04-29 08:16:50 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 08:29:34 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-04-29 08:29:34 UTC) #25
Mike West
On 2014/04/29 08:29:34, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 7 months ago (2014-04-29 08:37:41 UTC) #26
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 7 months ago (2014-04-29 08:37:46 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/246393004/130001
6 years, 7 months ago (2014-04-29 08:38:35 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 10:28:25 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 10:28:26 UTC) #30
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 7 months ago (2014-04-29 10:58:55 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/246393004/130001
6 years, 7 months ago (2014-04-29 10:59:03 UTC) #32
commit-bot: I haz the power
Change committed as 266859
6 years, 7 months ago (2014-04-29 12:39:48 UTC) #33
Michael Achenbach
A revert of this CL has been created in https://codereview.chromium.org/256333003/ by machenbach@chromium.org. The reason for ...
6 years, 7 months ago (2014-04-29 13:10:34 UTC) #34
Mike West
Vaclav, can you take a look at the fix in the latest patchset? https://codereview.chromium.org/246393004/diff2/130001:150001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc is ...
6 years, 7 months ago (2014-04-30 07:45:46 UTC) #35
Mike West
On 2014/04/30 07:45:46, Mike West wrote: > Vaclav, can you take a look at the ...
6 years, 7 months ago (2014-04-30 07:46:40 UTC) #36
vabr (Chromium)
Thanks Mike, Great that you discovered the leak! I don't really like the current fix, ...
6 years, 7 months ago (2014-04-30 07:56:06 UTC) #37
vabr (Chromium)
6 years, 7 months ago (2014-04-30 07:57:33 UTC) #38
Message was sent while issue was closed.
On 2014/04/30 07:46:40, Mike West wrote:
> On 2014/04/30 07:45:46, Mike West wrote:
> > Vaclav, can you take a look at the fix in the latest patchset?
> >
>
https://codereview.chromium.org/246393004/diff2/130001:150001/chrome/browser/...
> > is the only diff.
> > 
> > -mike
> 
> Actually, ignore that. I'll upload a new CL rather than reusing this review.

Fair enough. Please just bear my comment from here in mind during doing that. :)

Vaclav

Powered by Google App Engine
This is Rietveld 408576698