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

Issue 254263002: Password bubble: ManagePasswordsIconView is now a BubbleIconView. (Closed)

Created:
6 years, 7 months ago by Mike West
Modified:
6 years, 7 months ago
Reviewers:
vabr (Chromium), eroman
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. ---------------------------------------------------------------------------- This is a re-land of r266859, which was reverted due to LSAN errors. The original review is https://codereview.chromium.org/246393004/ ---------------------------------------------------------------------------- BUG=365678 TBR=vabr@chromium.org,pkasting@chromium.org,cpu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267195

Patch Set 1 #

Total comments: 1

Patch Set 2 : scoped_ptr. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+500 lines, -96 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 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 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_icon.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_icon.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_icon_mock.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_icon_mock.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h View 1 2 chunks +9 lines, -3 lines 1 comment Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 4 chunks +18 lines, -26 lines 0 comments Download
A chrome/browser/ui/views/passwords/manage_passwords_bubble_view_browsertest.cc View 1 chunk +128 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_icon_view.h View 1 chunk +29 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc View 3 chunks +32 lines, -46 lines 0 comments Download
A chrome/browser/ui/views/passwords/manage_passwords_icon_view_browsertest.cc View 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/passwords/manage_passwords_view_test.h View 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/passwords/manage_passwords_view_test.cc View 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.cc View 1 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Mike West
Hi Vaclav! Would you mind reviewing the diff between this patch and the patch which ...
6 years, 7 months ago (2014-04-30 07:51:04 UTC) #1
vabr (Chromium)
https://codereview.chromium.org/254263002/diff/1/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/254263002/diff/1/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc#newcode163 chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc:163: // The combobox doesn't take ownership of it's model. ...
6 years, 7 months ago (2014-04-30 08:24:13 UTC) #2
Mike West
Mind taking another look, Vaclav? Thanks! -mike
6 years, 7 months ago (2014-04-30 08:45:00 UTC) #3
vabr (Chromium)
LGTM, Thanks Mike! Vaclav https://codereview.chromium.org/254263002/diff/20001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h File chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h (right): https://codereview.chromium.org/254263002/diff/20001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h#newcode115 chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h:115: // The combobox doesn't take ...
6 years, 7 months ago (2014-04-30 09:01:01 UTC) #4
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 7 months ago (2014-04-30 09:34:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/254263002/20001
6 years, 7 months ago (2014-04-30 09:34:58 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 09:53:34 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 09:53:34 UTC) #8
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 7 months ago (2014-04-30 09:54:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/254263002/20001
6 years, 7 months ago (2014-04-30 09:55:14 UTC) #10
commit-bot: I haz the power
Change committed as 267195
6 years, 7 months ago (2014-04-30 12:14:14 UTC) #11
eroman
6 years, 7 months ago (2014-04-30 17:07:12 UTC) #12
Message was sent while issue was closed.
Reverted because of bot failure:

http://build.chromium.org/p/chromium.win/builders/Interactive%20Tests%20%28db...

Powered by Google App Engine
This is Rietveld 408576698