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

Issue 232753002: Password bubble: Deplatformify ManagePasswordsBubbleView. (Closed)

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

Description

Password bubble: Deplatformify ManagePasswordsBubbleView. This CL does a few things in the hopes of reducing the responsibility of ManagePasswordsBubbleView, working towards making it possible to create bubbles in a cross-platform way: 1. Logging functionality moves out of ManagePasswordsBubbleView, into ManagePasswordsBubbleModel. 2. Model creation is moved out of ManagePasswordsBubbleView into a new superclass, ManagePasswordsBubble. 3. Metrics bits are moved up into the password manager component. BUG=261628 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265243

Patch Set 1 #

Total comments: 19

Patch Set 2 : Tests!!! #

Total comments: 8

Patch Set 3 : vabr's feedback. #

Patch Set 4 : Android. #

Patch Set 5 : Rebased on top of 228593002. #

Patch Set 6 : Rebased. #

Patch Set 7 : chromium-style error. #

Total comments: 10

Patch Set 8 : Feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+615 lines, -122 lines) Patch
A chrome/browser/ui/passwords/manage_passwords_bubble.h View 1 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/ui/passwords/manage_passwords_bubble.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_bubble_model.h View 1 2 3 4 7 chunks +42 lines, -3 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_bubble_model.cc View 1 2 3 4 6 chunks +52 lines, -6 lines 0 comments Download
A chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc View 1 2 3 4 5 6 7 1 chunk +242 lines, -0 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.h View 1 2 3 4 5 3 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.cc View 1 2 3 4 5 4 chunks +20 lines, -1 line 0 comments Download
A chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_mock.h View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller_mock.cc View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_password_item_view.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_password_item_view.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h View 1 2 3 4 5 6 7 6 chunks +17 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 3 4 10 chunks +46 lines, -84 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_metrics_util.h View 1 2 chunks +12 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager_metrics_util.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Mike West
Hi Markus, Vaclav! Can you take a moment to review this CL? Thanks! -mike
6 years, 8 months ago (2014-04-10 09:02:53 UTC) #1
vabr (Chromium)
https://codereview.chromium.org/232753002/diff/1/chrome/browser/ui/passwords/manage_passwords_bubble.h File chrome/browser/ui/passwords/manage_passwords_bubble.h (right): https://codereview.chromium.org/232753002/diff/1/chrome/browser/ui/passwords/manage_passwords_bubble.h#newcode17 chrome/browser/ui/passwords/manage_passwords_bubble.h:17: // Interface for platform-specific bubble code. nit: It's not ...
6 years, 8 months ago (2014-04-10 09:30:24 UTC) #2
Mike West
Thanks Vaclav! I'll work through these while I write tests(!!!) for the next patchset. https://codereview.chromium.org/232753002/diff/1/chrome/browser/ui/passwords/manage_passwords_bubble.h ...
6 years, 8 months ago (2014-04-10 09:53:46 UTC) #3
vabr (Chromium)
Thanks, Mike! Ah, yes, indeed, the tests! I somehow always forget to comment on the ...
6 years, 8 months ago (2014-04-10 10:24:44 UTC) #4
vabr (Chromium)
> I agree this is a fuzzy area. And different people have different opinions > ...
6 years, 8 months ago (2014-04-10 10:47:53 UTC) #5
Mike West
Mind taking another look, Vaclav (and Markus :) )?
6 years, 8 months ago (2014-04-10 12:04:16 UTC) #6
vabr (Chromium)
Thanks, Mike. LGTM with comments. https://codereview.chromium.org/232753002/diff/20001/chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc File chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc (right): https://codereview.chromium.org/232753002/diff/20001/chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc#newcode236 chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc:236: TEST_F(ManagePasswordsBubbleModelTest, DismissalReasons) { optional: ...
6 years, 8 months ago (2014-04-10 12:35:14 UTC) #7
Mike West
https://codereview.chromium.org/232753002/diff/20001/chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc File chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc (right): https://codereview.chromium.org/232753002/diff/20001/chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc#newcode236 chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc:236: TEST_F(ManagePasswordsBubbleModelTest, DismissalReasons) { On 2014/04/10 12:35:14, vabr (Chromium) wrote: ...
6 years, 8 months ago (2014-04-10 12:46:42 UTC) #8
Mike West
Markus: Ping! :)
6 years, 8 months ago (2014-04-22 06:30:22 UTC) #9
markusheintz_
LGTM https://codereview.chromium.org/232753002/diff/110001/chrome/browser/ui/passwords/manage_passwords_bubble_model.h File chrome/browser/ui/passwords/manage_passwords_bubble_model.h (right): https://codereview.chromium.org/232753002/diff/110001/chrome/browser/ui/passwords/manage_passwords_bubble_model.h#newcode21 chrome/browser/ui/passwords/manage_passwords_bubble_model.h:21: class ManagePasswordsBubbleModel : public content::WebContentsObserver { For future ...
6 years, 8 months ago (2014-04-22 11:00:53 UTC) #10
markusheintz_
LGTM
6 years, 8 months ago (2014-04-22 11:00:56 UTC) #11
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 8 months ago (2014-04-22 11:30:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/232753002/130001
6 years, 8 months ago (2014-04-22 11:30:22 UTC) #13
Mike West
https://codereview.chromium.org/232753002/diff/110001/chrome/browser/ui/passwords/manage_passwords_bubble_model.h File chrome/browser/ui/passwords/manage_passwords_bubble_model.h (right): https://codereview.chromium.org/232753002/diff/110001/chrome/browser/ui/passwords/manage_passwords_bubble_model.h#newcode21 chrome/browser/ui/passwords/manage_passwords_bubble_model.h:21: class ManagePasswordsBubbleModel : public content::WebContentsObserver { On 2014/04/22 11:00:54, ...
6 years, 8 months ago (2014-04-22 11:57:39 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 12:49:33 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-22 12:49:34 UTC) #16
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 8 months ago (2014-04-22 12:50:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/232753002/130001
6 years, 8 months ago (2014-04-22 12:50:39 UTC) #18
commit-bot: I haz the power
6 years, 8 months ago (2014-04-22 14:04:26 UTC) #19
Message was sent while issue was closed.
Change committed as 265243

Powered by Google App Engine
This is Rietveld 408576698