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

Issue 250353003: Password bubble: refactor ManagePasswordsIconView. (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: refactor ManagePasswordsIconView. As another step towards a platform-agnostic test suite for the password management UI, this CL refactors ManagePasswordsIconView in a few ways: 1. It introduces a new 'ManagePasswordsIcon' abstract base class to provide a platform-agnostic interface to the Omnibox icon. 2. The ManagePasswordsBubbleUIController is now responsible for determining the Omnibox's icon's state, and also responsible for triggering automatic display of the bubble UI. The actual functionality is still sitting on the icon for the moment, but will be moved out to a platform-agnostic layer in a future CL. 3. Most importantly, some basic unit tests verify the functionality added above. BUG=356678 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266520

Patch Set 1 #

Total comments: 4

Patch Set 2 : Test. #

Total comments: 5

Patch Set 3 : Feedback. #

Patch Set 4 : Rebase. #

Total comments: 2

Patch Set 5 : Rebase. #

Patch Set 6 : s/cc/h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+401 lines, -104 lines) Patch
M chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.h View 1 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.cc View 1 3 chunks +21 lines, -4 lines 0 comments Download
A chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc View 1 2 3 4 5 1 chunk +139 lines, -0 lines 0 comments Download
A chrome/browser/ui/passwords/manage_passwords_icon.h View 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/ui/passwords/manage_passwords_icon.cc View 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/ui/passwords/manage_passwords_icon_mock.h View 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/ui/passwords/manage_passwords_icon_mock.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 4 chunks +4 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_icon_view.h View 2 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc View 1 2 3 4 2 chunks +31 lines, -33 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/mock_password_manager_driver.h View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/mock_password_manager_driver.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 2 chunks +1 line, -19 lines 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 1 2 2 chunks +1 line, -16 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Mike West
Hi Vaclav, Markus, and Peter. Would you mind taking a look at this CL, which ...
6 years, 8 months ago (2014-04-24 11:37:17 UTC) #1
Mike West
Actually +pkasting@ this time. Hi!
6 years, 8 months ago (2014-04-24 12:00:58 UTC) #2
vabr (Chromium)
Hi Mike, I'm looking forward to stealing your test-writing know-how from you. :) LGTM with ...
6 years, 8 months ago (2014-04-24 12:56:11 UTC) #3
Mike West
On 2014/04/24 12:56:11, vabr (Chromium) wrote: > Hi Mike, > > I'm looking forward to ...
6 years, 8 months ago (2014-04-24 14:27:58 UTC) #4
vabr (Chromium)
LGTM! https://codereview.chromium.org/250353003/diff/20001/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/250353003/diff/20001/chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc#newcode104 chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc:104: EXPECT_EQ(test_form().origin.spec(), controller()->origin().spec()); optional nit: Do you compare specs ...
6 years, 8 months ago (2014-04-24 14:46:33 UTC) #5
vabr (Chromium)
Still LGTM, but one more optional nit. https://codereview.chromium.org/250353003/diff/20001/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/250353003/diff/20001/chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc#newcode61 chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc:61: return reinterpret_cast<ManagePasswordsBubbleUIControllerMock*>( ...
6 years, 8 months ago (2014-04-24 16:01:57 UTC) #6
Peter Kasting
c/b/ui/views/location_bar LGTM
6 years, 8 months ago (2014-04-24 20:54:56 UTC) #7
Mike West
Thanks Vaclav and Peter. https://codereview.chromium.org/250353003/diff/20001/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/250353003/diff/20001/chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc#newcode24 chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_unittest.cc:24: class MockPasswordManagerDriver Moved this into ...
6 years, 8 months ago (2014-04-25 08:01:26 UTC) #8
markusheintz_
https://codereview.chromium.org/250353003/diff/60001/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc File chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc (right): https://codereview.chromium.org/250353003/diff/60001/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc#newcode52 chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc:52: // Suppress the bubble if the user is working ...
6 years, 8 months ago (2014-04-25 13:25:09 UTC) #9
Mike West
https://codereview.chromium.org/250353003/diff/60001/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc File chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc (right): https://codereview.chromium.org/250353003/diff/60001/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc#newcode52 chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc:52: // Suppress the bubble if the user is working ...
6 years, 8 months ago (2014-04-25 13:31:41 UTC) #10
markusheintz_
On 2014/04/25 13:31:41, Mike West wrote: > https://codereview.chromium.org/250353003/diff/60001/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc > File chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc (right): > > https://codereview.chromium.org/250353003/diff/60001/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc#newcode52 ...
6 years, 8 months ago (2014-04-25 13:33:43 UTC) #11
Mike West
Great, thanks Markus. I'll land this Monday morning, given that the tree's permared today. :) ...
6 years, 8 months ago (2014-04-25 14:22:17 UTC) #12
Garrett Casto
lgtm
6 years, 8 months ago (2014-04-25 23:32:48 UTC) #13
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 8 months ago (2014-04-26 06:25:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/250353003/60001
6 years, 8 months ago (2014-04-26 06:27:41 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 06:27:54 UTC) #16
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-26 06:27:55 UTC) #17
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 7 months ago (2014-04-28 06:40:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/250353003/80001
6 years, 7 months ago (2014-04-28 06:42:18 UTC) #19
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 7 months ago (2014-04-28 06:48:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/250353003/100001
6 years, 7 months ago (2014-04-28 06:51:24 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 06:54:24 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 7 months ago (2014-04-28 06:54:24 UTC) #23
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 7 months ago (2014-04-28 07:55:56 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/250353003/100001
6 years, 7 months ago (2014-04-28 07:58:26 UTC) #25
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 12:21:08 UTC) #26
Message was sent while issue was closed.
Change committed as 266520

Powered by Google App Engine
This is Rietveld 408576698