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

Issue 2769963007: [ios clean] Creates ToolsMenu Mediator and Consumer (Closed)

Created:
3 years, 9 months ago by sczs
Modified:
3 years, 8 months ago
CC:
chromium-reviews, marq+scrutinize_chromium.org, lpromero+watch_chromium.org, ios-reviews+clean_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios clean] Creates ToolsMenu Mediator and Consumer The CL primary purpose is to create the necessary Consumer, Mediator and ToolsMenuItem files, and hook them together. The consumer protocol method is not intended to be final and will remain as a placeholder for now. The model is also hardcoded and will be replaced in a future CL. BUG=682880 Review-Url: https://codereview.chromium.org/2769963007 Cr-Commit-Position: refs/heads/master@{#460258} Committed: https://chromium.googlesource.com/chromium/src/+/f8072f5360ed41e1e41265a1d528047aa4dcd3a0

Patch Set 1 #

Total comments: 6

Patch Set 2 : CL Feedback, ARC Guards and Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -50 lines) Patch
M ios/clean/chrome/browser/ui/tools/BUILD.gn View 2 chunks +5 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/tools/menu_view_controller.h View 1 chunk +3 lines, -1 line 0 comments Download
M ios/clean/chrome/browser/ui/tools/menu_view_controller.mm View 5 chunks +9 lines, -49 lines 0 comments Download
A ios/clean/chrome/browser/ui/tools/tools_consumer.h View 1 1 chunk +19 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/tools/tools_coordinator.mm View 1 3 chunks +4 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/tools/tools_mediator.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/tools/tools_mediator.mm View 1 1 chunk +71 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/tools/tools_menu_item.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/tools/tools_menu_item.mm View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
sczs
PTAL
3 years, 8 months ago (2017-03-27 23:41:04 UTC) #8
lpromero
lg
3 years, 8 months ago (2017-03-28 11:45:43 UTC) #9
marq (ping after 24h)
lgtm https://codereview.chromium.org/2769963007/diff/40001/ios/clean/chrome/browser/ui/tools/tools_consumer.h File ios/clean/chrome/browser/ui/tools/tools_consumer.h (right): https://codereview.chromium.org/2769963007/diff/40001/ios/clean/chrome/browser/ui/tools/tools_consumer.h#newcode14 ios/clean/chrome/browser/ui/tools/tools_consumer.h:14: // final and might change depending on how ...
3 years, 8 months ago (2017-03-28 15:17:52 UTC) #10
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/2769963007/60001
3 years, 8 months ago (2017-03-29 00:48:45 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:60001) as https://chromium.googlesource.com/chromium/src/+/f8072f5360ed41e1e41265a1d528047aa4dcd3a0
3 years, 8 months ago (2017-03-29 01:25:13 UTC) #20
sczs
3 years, 8 months ago (2017-03-29 14:52:49 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/2769963007/diff/40001/ios/clean/chrome/browse...
File ios/clean/chrome/browser/ui/tools/tools_consumer.h (right):

https://codereview.chromium.org/2769963007/diff/40001/ios/clean/chrome/browse...
ios/clean/chrome/browser/ui/tools/tools_consumer.h:14: // final and might change
depending on how we set the ToolsMenuVC model.
On 2017/03/28 15:17:52, marq wrote:
> Even for a placeholder, don't use "we" in comments.

Done.

https://codereview.chromium.org/2769963007/diff/40001/ios/clean/chrome/browse...
File ios/clean/chrome/browser/ui/tools/tools_coordinator.mm (right):

https://codereview.chromium.org/2769963007/diff/40001/ios/clean/chrome/browse...
ios/clean/chrome/browser/ui/tools/tools_coordinator.mm:40:
self.mediator.consumer = self.menuViewController;
On 2017/03/28 15:17:52, marq wrote:
> We haven't sorted out how we're going to handle differing lifetimes of
consumers
> and mediators (with a delegate or a proxy or something else), but I think in
the
> meantime, where possible, we should just make consumers a required property of
> mediators passed on construction. So in this case the mediator would be
created
> at the same time as the view controller, and have it passed into its init.

Sounds like a good idea. Done.

https://codereview.chromium.org/2769963007/diff/40001/ios/clean/chrome/browse...
File ios/clean/chrome/browser/ui/tools/tools_mediator.h (right):

https://codereview.chromium.org/2769963007/diff/40001/ios/clean/chrome/browse...
ios/clean/chrome/browser/ui/tools/tools_mediator.h:14: // The consumer for this
object. This can change during the lifetime of this
On 2017/03/28 15:17:52, marq wrote:
> I think this was boilerplate that I wrote for WebConsumer that in retrospect
we
> shouldn't have. 

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698