Chromium Code Reviews
DescriptionRemove obsolete code in TabModelOrderController.
The insertion direction in TabModelOrderController could be
controlled by insertionPolicy property however it was never
set to another value after initialisation, thus becoming a
constant.
Remove the enumeration, the property and inline the value in
the different location it was used, removing the alternatives
that are now unreachable.
Refactor -insertionIndexForTab:transition:opener:adjacency
to use early exit instead of using nested if blocks. Remove
obsolete method -firstTabWithOpener: from TabModel.
Modernize the TabModelOrderController API (move the ivar to
the implementation file, init returns instancetype, convert
the file to ARC).
BUG=687207
Review-Url: https://codereview.chromium.org/2690893003
Cr-Commit-Position: refs/heads/master@{#450709}
Committed: https://chromium.googlesource.com/chromium/src/+/bf571dff95b062353eacd029bbf7cb545549601a
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address comment and fix bug in refactoring. #
Total comments: 2
Patch Set 3 : Rebase. #Patch Set 4 : Rebase on origin/master. #
Dependent Patchsets: Messages
Total messages: 26 (18 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||