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

Issue 218993006: Extracting the remaining ManagePasswordsBubbleView::Init code. (Closed)

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

Description

Refactor ManagePasswordsBubbleView::Init code. This block does way too much. This CL makes a few changes which should hopefully improve readability: 1. ColumnSets are constructed in a separate function, and collapsed down into just two types: single-view, and double-view. 2. Border logic is pushed down into the ItemView rather than being handled here. 3. Comments. BUG=261628 TBR=markusheintz@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261363

Patch Set 1 #

Patch Set 2 : Rewrite. #

Total comments: 4

Patch Set 3 : vabr feedback. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -106 lines) Patch
M chrome/browser/ui/views/passwords/manage_password_item_view.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/passwords/manage_password_item_view.cc View 1 2 chunks +13 lines, -1 line 1 comment Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h View 1 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 3 chunks +84 lines, -104 lines 1 comment Download

Messages

Total messages: 16 (0 generated)
Mike West
This is the next stop along the road that the Header CL started. Does it ...
6 years, 8 months ago (2014-03-31 14:17:28 UTC) #1
markusheintz_
On 2014/03/31 14:17:28, Mike West wrote: > This is the next stop along the road ...
6 years, 8 months ago (2014-04-01 21:26:59 UTC) #2
Mike West
1. I disagree with you that the current code is better than patchset 1. :) ...
6 years, 8 months ago (2014-04-02 08:13:37 UTC) #3
Mike West
Vaclav, can you possibly pre-review this so Markus can just stamp it? :)
6 years, 8 months ago (2014-04-02 08:15:29 UTC) #4
vabr (Chromium)
LGTM, with comments. And to use "comments" with different meanings: I really like the comments ...
6 years, 8 months ago (2014-04-02 08:38:52 UTC) #5
Mike West
https://codereview.chromium.org/218993006/diff/20001/chrome/browser/ui/views/passwords/manage_password_item_view.h File chrome/browser/ui/views/passwords/manage_password_item_view.h (right): https://codereview.chromium.org/218993006/diff/20001/chrome/browser/ui/views/passwords/manage_password_item_view.h#newcode22 chrome/browser/ui/views/passwords/manage_password_item_view.h:22: enum Position { FIRST_ITEM, MIDDLE_ITEM, LAST_ITEM }; On 2014/04/02 ...
6 years, 8 months ago (2014-04-02 09:40:06 UTC) #6
Mike West
https://codereview.chromium.org/218993006/diff/20001/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/218993006/diff/20001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc#newcode152 chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc:152: default: On 2014/04/02 08:38:52, vabr (Chromium) wrote: > I ...
6 years, 8 months ago (2014-04-02 09:40:34 UTC) #7
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 8 months ago (2014-04-03 06:42:38 UTC) #8
Mike West
On 2014/04/02 09:40:34, Mike West wrote: > https://codereview.chromium.org/218993006/diff/20001/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/218993006/diff/20001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc#newcode152 ...
6 years, 8 months ago (2014-04-03 06:43:04 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/218993006/40001
6 years, 8 months ago (2014-04-03 06:44:41 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 10:12:52 UTC) #11
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-03 10:12:53 UTC) #12
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 8 months ago (2014-04-03 10:16:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/218993006/40001
6 years, 8 months ago (2014-04-03 10:17:27 UTC) #14
commit-bot: I haz the power
Change committed as 261363
6 years, 8 months ago (2014-04-03 12:10:21 UTC) #15
markusheintz_
6 years, 8 months ago (2014-04-04 14:56:25 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/218993006/diff/40001/chrome/browser/ui/views/...
File chrome/browser/ui/views/passwords/manage_password_item_view.cc (right):

https://codereview.chromium.org/218993006/diff/40001/chrome/browser/ui/views/...
chrome/browser/ui/views/passwords/manage_password_item_view.cc:36: 0,
nit: I wonder whether we should add a comment or just the argument name to
describe these numbers

https://codereview.chromium.org/218993006/diff/40001/chrome/browser/ui/views/...
File chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc (right):

https://codereview.chromium.org/218993006/diff/40001/chrome/browser/ui/views/...
chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc:122: void
ManagePasswordsBubbleView::BuildColumnSet(views::GridLayout* layout,
I'm still not convinced that this really makes the code easier to understand.

But let's follow up offline when I'm back.

Powered by Google App Engine
This is Rietveld 408576698