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

Issue 2668853002: Use the CreatePanelLayout() utility method instead of hand-rolling panel layout. (Closed)

Created:
3 years, 10 months ago by Peter Kasting
Modified:
3 years, 10 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use the CreatePanelLayout() utility method instead of hand-rolling panel layout. This is not only shorter, it fixes an issue where the provided insets didn't make sense. The expected order of insets is TLBR; the passed insets were horizontal/vertical/vertical/horizontal, and even if the first two had been swapped, it would still function differently than other panel layouts. BUG=none TEST=none Review-Url: https://codereview.chromium.org/2668853002 Cr-Commit-Position: refs/heads/master@{#447404} Committed: https://chromium.googlesource.com/chromium/src/+/2dca6772888dd5454cafc6b50e2ca924fb16b0bd

Patch Set 1 #

Patch Set 2 : Fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -13 lines) Patch
M chrome/browser/chromeos/options/DEPS View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 1 2 chunks +2 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (12 generated)
Peter Kasting
I assume this matches the intent, if not the effect, of the original code.
3 years, 10 months ago (2017-02-01 00:01:25 UTC) #6
xiyuan
lgtm
3 years, 10 months ago (2017-02-01 01:30:22 UTC) #11
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/2668853002/20001
3 years, 10 months ago (2017-02-01 01:37:18 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 01:45:28 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2dca6772888dd5454cafc6b50e2c...

Powered by Google App Engine
This is Rietveld 408576698