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

Issue 2706293008: [ios] Creates ToolsMenuModel Class (Closed)

Created:
3 years, 10 months ago by sczs
Modified:
3 years, 10 months ago
CC:
chromium-reviews, marq+watch_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Creates ToolsMenuModel Class Extracts the Model related code from ToolsMenuViewController to a new class named ToolsMenuModel. This CL is just the first step on refactoring and decoupling the Model logic, so it can be used by the new ToolsMenuVC and the old one. BUG=682880 Review-Url: https://codereview.chromium.org/2706293008 Cr-Commit-Position: refs/heads/master@{#452585} Committed: https://chromium.googlesource.com/chromium/src/+/8a9ed5b3b71d3915fb734b99a5e6e0db550d79db

Patch Set 1 #

Patch Set 2 : Includes the C class instead of importing. #

Total comments: 19

Patch Set 3 : CL Feedback #

Total comments: 4

Patch Set 4 : Format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -170 lines) Patch
M ios/chrome/browser/ui/tools_menu/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/tools_menu/tools_menu_model.h View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/tools_menu/tools_menu_model.mm View 1 2 3 1 chunk +119 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.mm View 1 2 3 11 chunks +15 lines, -170 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
sczs
PTAL I will improve the existing model in further CL's and I might still decouple ...
3 years, 10 months ago (2017-02-22 02:25:58 UTC) #3
edchin
lgtm. Good first step to breaking apart the massive view controller. https://codereview.chromium.org/2706293008/diff/20001/ios/chrome/browser/ui/tools_menu/tools_menu_model.h File ios/chrome/browser/ui/tools_menu/tools_menu_model.h (right): ...
3 years, 10 months ago (2017-02-22 07:22:29 UTC) #4
marq (ping after 24h)
+rohitrao as FYI and to comment on NS_INLINE This is a good and useful refactor! ...
3 years, 10 months ago (2017-02-22 11:15:57 UTC) #6
rohitrao (ping after 24h)
https://codereview.chromium.org/2706293008/diff/20001/ios/chrome/browser/ui/tools_menu/tools_menu_model.h File ios/chrome/browser/ui/tools_menu/tools_menu_model.h (right): https://codereview.chromium.org/2706293008/diff/20001/ios/chrome/browser/ui/tools_menu/tools_menu_model.h#newcode60 ios/chrome/browser/ui/tools_menu/tools_menu_model.h:60: typedef NS_OPTIONS(NSUInteger, kToolbarType) { On 2017/02/22 11:15:57, marq wrote: ...
3 years, 10 months ago (2017-02-22 12:17:34 UTC) #7
marq (ping after 24h)
https://codereview.chromium.org/2706293008/diff/20001/ios/chrome/browser/ui/tools_menu/tools_menu_model.h File ios/chrome/browser/ui/tools_menu/tools_menu_model.h (right): https://codereview.chromium.org/2706293008/diff/20001/ios/chrome/browser/ui/tools_menu/tools_menu_model.h#newcode60 ios/chrome/browser/ui/tools_menu/tools_menu_model.h:60: typedef NS_OPTIONS(NSUInteger, kToolbarType) { On 2017/02/22 12:17:33, rohitrao wrote: ...
3 years, 10 months ago (2017-02-22 12:29:07 UTC) #8
sczs
PTAL Thanks for the feedback, it will be useful moving forward. https://codereview.chromium.org/2706293008/diff/20001/ios/chrome/browser/ui/tools_menu/tools_menu_model.h File ios/chrome/browser/ui/tools_menu/tools_menu_model.h (right): ...
3 years, 10 months ago (2017-02-22 18:05:12 UTC) #9
marq (ping after 24h)
LGTM after type name and formatting changes. https://codereview.chromium.org/2706293008/diff/40001/ios/chrome/browser/ui/tools_menu/tools_menu_model.h File ios/chrome/browser/ui/tools_menu/tools_menu_model.h (right): https://codereview.chromium.org/2706293008/diff/40001/ios/chrome/browser/ui/tools_menu/tools_menu_model.h#newcode60 ios/chrome/browser/ui/tools_menu/tools_menu_model.h:60: typedef NS_OPTIONS(NSUInteger, ...
3 years, 10 months ago (2017-02-22 18:39:06 UTC) #10
sczs
Rohit, please let me know if there's something else you would like me to change, ...
3 years, 10 months ago (2017-02-22 21:38:39 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/2706293008/60001
3 years, 10 months ago (2017-02-23 18:08:49 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/8a9ed5b3b71d3915fb734b99a5e6e0db550d79db
3 years, 10 months ago (2017-02-23 19:30:49 UTC) #17
sczs
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2711263002/ by sczs@chromium.org. ...
3 years, 10 months ago (2017-02-23 23:13:09 UTC) #18
sczs
3 years, 10 months ago (2017-02-24 00:45:31 UTC) #19
Message was sent while issue was closed.
On 2017/02/23 23:13:09, sczs wrote:
> A revert of this CL (patchset #4 id:60001) has been created in
> https://codereview.chromium.org/2711263002/ by mailto:sczs@chromium.org.
> 
> The reason for reverting is: Broke EG test.

The CL broke an internal EG test that I hadn't run. I will create a new CL with
the Fix

Powered by Google App Engine
This is Rietveld 408576698