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

Issue 2422473002: Fix wiring for Page Info buttons/links. (Closed)

Created:
4 years, 2 months ago by lgarron
Modified:
4 years, 2 months ago
Reviewers:
msw
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix wiring for Page Info buttons/links. This also includes a partial revert of crrev.com/0af7d0edfddd038461850cbc8957f1fba1686df9 to force proper sizing of the "Re-enable warnings" styled label. BUG=655872 Committed: https://crrev.com/633c166bf730a58a847a6705c46ec08989a74db0 Cr-Commit-Position: refs/heads/master@{#425401}

Patch Set 1 #

Patch Set 2 : Fix wiring for Page Info buttons/links. #

Total comments: 11

Patch Set 3 : Fix wiring for Page Info buttons/links. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -42 lines) Patch
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 9 chunks +63 lines, -42 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
lgarron
msw@, could you review? https://codereview.chromium.org/2422473002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/2422473002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode328 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:328: reset_decisions_label_->SizeToFit(0); I removed this (and ...
4 years, 2 months ago (2016-10-14 01:18:40 UTC) #2
lgarron
https://codereview.chromium.org/2422473002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/2422473002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode777 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:777: case LINK_COOKIE_DIALOG: Also note that `cookie_dialog_link_` is a member ...
4 years, 2 months ago (2016-10-14 01:21:31 UTC) #3
msw
Bummer we missed these problems in code review. lgtm with nits. https://codereview.chromium.org/2422473002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): ...
4 years, 2 months ago (2016-10-14 01:58:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2422473002/40001
4 years, 2 months ago (2016-10-14 17:59:24 UTC) #7
msw
still lgtm, with a q https://codereview.chromium.org/2422473002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/2422473002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode328 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:328: reset_decisions_label_->SizeToFit(0); On 2016/10/14 01:58:56, ...
4 years, 2 months ago (2016-10-14 18:15:53 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-14 18:43:43 UTC) #9
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/633c166bf730a58a847a6705c46ec08989a74db0 Cr-Commit-Position: refs/heads/master@{#425401}
4 years, 2 months ago (2016-10-14 18:48:22 UTC) #11
lgarron
4 years, 2 months ago (2016-10-14 19:02:01 UTC) #12
Message was sent while issue was closed.
(Sorry, forgot to hit "publish" with "commit".)

https://codereview.chromium.org/2422473002/diff/20001/chrome/browser/ui/views...
File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc
(right):

https://codereview.chromium.org/2422473002/diff/20001/chrome/browser/ui/views...
chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:328:
reset_decisions_label_->SizeToFit(0);
On 2016/10/14 at 01:58:56, msw wrote:
> On 2016/10/14 01:18:40, lgarron wrote:
> > I removed this (and InvalidateLayout() below) in
> > https://codereview.chromium.org/2412363002 to rely on the Views hierarchy.
> > It seems we still need to force layout somehow, so I've brought this up and
made
> > a note in https://crbug.com/655880 to follow up.
> 
> Should this also restore details_label_->SizeToFit(0); after line 302?
> (and I presume the LEADING->FILL changes from that CL are still okay)

details_label_ is created at initialization time, so it sizes correctly.
(It would have been obvious if details_label_ had needed this; unlike
reset_decisions, it is always visible.)

https://codereview.chromium.org/2422473002/diff/20001/chrome/browser/ui/views...
chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:760: //
Both switch cases require accessing web_contents(), so we check it here for
On 2016/10/14 at 01:58:56, msw wrote:
> optional nit: end comment after "here." for a one-liner

Definitely also reads better that way. Done.

Powered by Google App Engine
This is Rietveld 408576698